Are you an LLM? Read llms.txt for a summary of the docs, or llms-full.txt for the full context.
Skip to content

MCP Server

Install

Claude Code

claude mcp add altana -- bunx @altananetwork/mcp

That's it. Restart Claude Code; tools and slash commands become available.

To remove:

claude mcp remove altana

Network

The server operates on one chain, selected at startup via the ALTANA_CHAIN environment variable. It defaults to BNB Smart Chain.

ALTANA_CHAINChain
bnb (default)BNB Smart Chain (56)
ethereumEthereum (1)
# Operate on Ethereum instead of the BNB default
claude mcp add altana -e ALTANA_CHAIN=ethereum -- bunx @altananetwork/mcp

One server process serves one chain. Restart with a different ALTANA_CHAIN to switch.

Cursor / Continue / other hosts

Add this to your host's MCP server config:

{
  "mcpServers": {
    "altana": {
      "command": "bunx",
      "args": ["@altananetwork/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:
  1. OS keychain under service altana-wallet. Primary. Written by create_wallet.
  2. ~/.altana/keys.jsonwallets[]. File fallback. Mode 0600.
  3. ALTANA_WALLET_<NAME>_PRIVATE_KEY env var. Env fallback.

For the default wallet, the convention is ALTANA_WALLET_DEFAULT_PRIVATE_KEY.

Session keys:
  1. OS keychain under service altana-session. Primary. Written by grant_session.
  2. ~/.altana/keys.jsonsessions[]. File fallback.
  3. ALTANA_SESSION_<NAME>_PRIVATE_KEY env var.

Altana never sees these keys. They stay on your machine.