MCP Server
Install
Claude Code
claude mcp add functor -- bunx @functornetwork/mcpThat's it. Restart Claude Code; tools and slash commands become available.
To remove:
claude mcp remove functorNetwork
The server operates on one chain, selected at startup via the FUNCTOR_CHAIN environment
variable. It defaults to BNB Smart Chain Testnet.
FUNCTOR_CHAIN | Chain |
|---|---|
bnb-testnet (default) | BNB Smart Chain Testnet (97) |
sepolia | Ethereum Sepolia (11155111) |
# Operate on Sepolia instead of the BNB default
claude mcp add functor -e FUNCTOR_CHAIN=sepolia -- bunx @functornetwork/mcpOne server process serves one chain. Restart with a different FUNCTOR_CHAIN to switch.
Cursor / Continue / other hosts
Add this to your host's MCP server config:
{
"mcpServers": {
"functor": {
"command": "bunx",
"args": ["@functornetwork/mcp"]
}
}
}Keys
Wallet admin keys and session keys live in separate namespaces so they can never collide. The server reads each kind from three places, in order.
Wallet admin keys:- OS keychain under service
functor-wallet. Primary. Written bycreate_wallet. ~/.functor/keys.json→wallets[]. File fallback. Mode 0600.FUNCTOR_WALLET_<NAME>_PRIVATE_KEYenv var. Env fallback.
For the default wallet, the convention is FUNCTOR_WALLET_DEFAULT_PRIVATE_KEY.
- OS keychain under service
functor-session. Primary. Written bygrant_session. ~/.functor/keys.json→sessions[]. File fallback.FUNCTOR_SESSION_<NAME>_PRIVATE_KEYenv var.
Functor never sees these keys. They stay on your machine.