MCP 서버

FirstKey

io.github.FirstKeyHQ/firstkey-mcp

이 MCP로 할 수 있는 일

Creates ICP agent wallets, manages cycles funding, deploys static sites to ICP canisters, and provides read-only ICPSwap quotes.

check_cycles
Read an ICP principal's cycles balance on the cycles ledger.
입력 스키마
{'type': 'object', 'required': ['principal'], 'properties': {'principal': {'type': 'string', 'description': 'ICP principal (text form).'}}}
claim_faucet_grant
Claim the one-time free 1T cycles grant from the FirstKey faucet for an agent principal. One claim per principal, ever. The grant lands on the cycles ledger and funds the agent's first canister deploy.
입력 스키마
{'type': 'object', 'required': ['agent'], 'properties': {'agent': {'type': 'string', 'description': "The agent's ICP principal (text form) receiving the grant."}}}
create_wallet
Generate a fresh Ed25519 wallet for an AI agent: returns the ICP principal and the PKCS#8 PEM private key. The private key is returned exactly once over this call and is never stored anywhere. No signup, no on-chain registration — the keypair IS the wallet.
입력 스키마
{'type': 'object', 'properties': {}}
deploy_site
Deploy a static website for an agent: creates a canister on the Internet Computer, installs the FirstKey static host, uploads every file, and returns the live https URL. The agent is added as a controller of its site canister. One free deploy per agent principal, funded from the FirstKey deploy pool; files must fit in one call (total under ~1.4 MB decoded) — use deploy_upload_chunk for larger files.
입력 스키마
{'type': 'object', 'required': ['agent', 'files'], 'properties': {'agent': {'type': 'string', 'description': "The agent's ICP principal — becomes a controller of the site canister."}, 'files': {'type': 'array', 'items': {'type': 'object', 'required': ['path', 'content_base64'], 'properties': {'path': {'type': 'string', 'description': 'Site path, e.g. index.html or css/main.css'}, 'content_type': {'type': 'string', 'description': 'Optional MIME type; guessed from extension when omitted.'}, 'content_base64': {'type': 'string', 'description': 'File bytes, base64-encoded.'}}}, 'description': 'Files to publish. Include at least index.html.'}}}
deploy_upload_chunk
Upload one chunk of a large file to an already-deployed agent site (for files that don't fit in a single deploy_site call). Chunks are appended in order; set is_last on the final chunk to publish the file.
입력 스키마
{'type': 'object', 'required': ['agent', 'canister', 'path', 'chunk_index', 'chunk_base64', 'is_last'], 'properties': {'path': {'type': 'string', 'description': 'Site path, e.g. assets/video.mp4'}, 'agent': {'type': 'string', 'description': "The agent's ICP principal (must own the site)."}, 'is_last': {'type': 'boolean', 'description': 'True on the final chunk: assembles and publishes the file.'}, 'canister': {'type': 'string', 'description': 'The site canister principal returned by deploy_site.'}, 'chunk_index': {'type': 'integer', 'description': '0-based chunk number. 0 starts a new upload for this path.'}, 'total_bytes': {'type': 'string', 'description': 'Total file size in bytes, as a decimal string (only used on the first chunk).'}, 'chunk_base64': {'type': 'string', 'description': 'Chunk bytes, base64-encoded.'}, 'content_type': {'type': 'string', 'description': 'MIME type (only used on the first chunk).'}}}
get_fuel_link
Get the FirstKey Fuel payment link for a principal: a human pays by card (Stripe) and cycles land in the agent's wallet — the sovereign refuel path when the free faucet grant or deploy pool is exhausted.
입력 스키마
{'type': 'object', 'required': ['principal'], 'properties': {'principal': {'type': 'string', 'description': "The agent's ICP principal to refuel."}}}
get_swap_quote
Get a live, read-only swap quote on ICPSwap (the deepest on-chain DEX on ICP): how much receive_token you would get for pay_amount of pay_token. No tokens move — this prices the intent; execution happens in the agent's own wallet/canister. Tokens can be symbols (ICP, ckUSDC, ckUSDT, ckBTC, ckETH) or ledger principals.
입력 스키마
{'type': 'object', 'required': ['pay_token', 'receive_token', 'pay_amount'], 'properties': {'fee': {'type': 'integer', 'description': 'Optional pool fee tier in hundredths of a bps (3000 = 0.3%). Defaults to trying 3000, then 10000, then 500.'}, 'pay_token': {'type': 'string', 'description': 'Token to sell: symbol or ledger principal.'}, 'pay_amount': {'type': 'string', 'description': 'Amount to sell, in base units as a decimal string (e.g. "100000000" = 1 ICP).'}, 'receive_token': {'type': 'string', 'description': 'Token to buy: symbol or ledger principal.'}}}
get_swap_route
Route a swap intent across ICPSwap: prices the direct pool and every two-hop path through ICP, ckUSDC, ckUSDT, ckBTC, and ckETH live on-chain, chains each leg's quoted output into the next leg's input, and returns the best route leg-by-leg. Read-only — no tokens move. Use this instead of get_swap_quote when a direct pool may be thin or missing.
입력 스키마
{'type': 'object', 'required': ['pay_token', 'receive_token', 'pay_amount'], 'properties': {'fee': {'type': 'integer', 'description': 'Optional pool fee tier in hundredths of a bps (3000 = 0.3%), applied to every leg. Defaults to trying 3000, then 10000, then 500 per leg.'}, 'max_hops': {'type': 'integer', 'description': '1 = direct path only, 2 = also try two-hop routes via intermediate tokens (default 2).'}, 'pay_token': {'type': 'string', 'description': 'Token to sell: symbol or ledger principal.'}, 'pay_amount': {'type': 'string', 'description': 'Amount to sell, in base units as a decimal string (e.g. "100000000" = 1 ICP).'}, 'receive_token': {'type': 'string', 'description': 'Token to buy: symbol or ledger principal.'}}}
추가됨
get_swap_route
2026년 10월 1일 2:42 AM
추가됨
get_swap_quote
2026년 9월 27일 2:40 AM
추가됨
get_fuel_link
2026년 9월 25일 2:40 AM
추가됨
check_cycles
2026년 9월 25일 2:40 AM
추가됨
deploy_upload_chunk
2026년 9월 25일 2:40 AM
추가됨
deploy_site
2026년 9월 25일 2:40 AM
추가됨
claim_faucet_grant
2026년 9월 25일 2:40 AM
추가됨
create_wallet
2026년 9월 25일 2:40 AM