TKN MCP Service

Provide this URL to your agent to interact with TKN.

https://openapi.tkn.xyz

MCP Tools

get-status
Returns the current server status
create-wallet
Generate a new EVM wallet keypair for the TKN testnet
faucet-balance
Check the faucet wallet's remaining TKN balance
faucet
Send testnet TKN to a wallet address from the faucet — params: address, amount?
send-transaction
Send TKN from a wallet to another address on the testnet — params: privateKey, to, value
read-contract
Call a read-only function on a verified smart contract. Returns the result. If the function name is wrong, returns a list of available read functions. — params: contractAddress, functionName, args?
write-contract
Call a state-changing function on a verified smart contract. Requires a private key to sign the transaction. If the function name is wrong, returns a list of available write functions. — params: privateKey, contractAddress, functionName, args?

MCP Resources

mcp://server/info
Server metadata: name, version, and capabilities
mcp://contracts/token-storage
Address and metadata for the TKN L2Storage contract on testnet

MCP Prompts

summarize
Generate a summary prompt for a given topic — params: topic

REST API

GET /api/rest/get-status
Returns the current server status
GET /api/rest/create-wallet
Generate a new EVM wallet keypair for the TKN testnet
GET /api/rest/faucet-balance
Check the faucet wallet's remaining TKN balance
POST /api/rest/faucet
Send testnet TKN to a wallet address from the faucet
Body: { address, amount? }
POST /api/rest/send-transaction
Send TKN from a wallet to another address on the testnet
Body: { privateKey, to, value }
POST /api/rest/read-contract
Call a read-only function on a verified smart contract. Returns the result. If the function name is wrong, returns a list of available read functions.
Body: { contractAddress, functionName, args? }
POST /api/rest/write-contract
Call a state-changing function on a verified smart contract. Requires a private key to sign the transaction. If the function name is wrong, returns a list of available write functions.
Body: { privateKey, contractAddress, functionName, args? }

Full spec: /.well-known/openapi.json