Skip to main content
Glama

@grokchain/mcp

Let an AI agent pay for things on Solana without ever giving it a wallet.

You keep the keys. You set a spending cap and a list of who may be paid. The agent signs intents; it never holds SOL, never pays gas, and cannot move money anywhere you did not approve. Revoke it in one transaction.

Live on Solana mainnet. A real 0.01 USDC payment: 4nhDmpmy…

What your agent can do

  • Pay — SOL (pay) or any SPL token including USDC (pay_token)

  • Subscribe — recurring payments that cannot be double-charged, enforced on chain

  • Trade — buy and sell tokens through Jupiter (token_buy / token_sell)

  • Read payment requests — parses Solana Pay links from a checkout page

Related MCP server: BotWallet MCP Server

What it deliberately cannot do

  • Pay anyone not on the allowlist you control

  • Spend past the cap you set, or after the grant expires

  • Hold a balance, or pay its own gas

  • Sign a transaction composed by someone else's server

That last one is why Solana Pay transaction requests are refused: they ask a remote server to build what we sign. Transfer requests are parsed and checked.

The honest limit

The allowlist holds addresses. Many Solana-accepting stores reuse one receiving address per merchant, so you approve them once and every later order works. Stores that generate a fresh address per order are not supported yet — approving those safely needs signed vouchers, which is not built.

So: subscriptions, invoices, recurring bills and fixed vendors work today. Arbitrary checkout does not.

Quickstart

npx -y github:grokloop/grokchain-mcp grokchain setup --devnet

Rehearse on devnet first — it is free and the flow is identical. When it works, setup --mainnet does the same thing with real money, prints a plan, and waits for you to confirm before spending anything.


On localnet, CORE and INTENTS default to the local-only validator pair (8WDhHSfrz6hMkmX7WteAAmyuWFLryHM2Kfc1r4k8EFXE and AXprcURLhSqj35v9DJyBkTSPGSoZ9AfTRxYyguQJwnT2). Those ids are local-only. They are not a deployed program. They are not on devnet. They are not on mainnet. Do not treat them as live.

On MAINNET, CORE and INTENTS are the deployed programs (pay, pay_token, token_buy/token_sell, swap, call, deploy; pump trade ixs cut for size):

On DEVNET (rehearsal), CORE and INTENTS are the old grokchain-devnet programs:

Human funds SpendVault (pay source) AND Paymaster (gas). Two deposits. Human pays. The relayer is the only address reimbursed as the outer fee payer. The bot/agent never holds SOL, never is the fee payer, never is the SOL source.

sponsor_eligible means this grant may use YOUR paymaster — not a promise Grok Chain pays.

Today vs stub

Tool

Today

create_account

implemented CORE client. MAINNET: real CORE id 44fxwzuEyNxZtgDr87mTtMYYJ1LJm6cB5aZNLyBsPjNd. DEVNET rehearsal: old grokchain-devnet CORE id. localnet: local-only CORE id. Lands only if the human has rooted the account (GROKCHAIN_ROOT_KEYPAIR). Otherwise need_human_signature / need_human_setup.

issue_grant

implemented CORE client. Same cluster split. Grant allowlist on MAINNET must be the real INTENTS id 3HCErAFs93FMk2J25Qq1xRRMp6B4FyGvif8ZV8hYxQKw. DEVNET rehearsal uses EYhYtqLViS4H3FNt1Q8nGRHGt9oD87uaNsV2WJMNiRkz. Never the local-only AXprcURLhSqj35v9DJyBkTSPGSoZ9AfTRxYyguQJwnT2.

revise_grant

implemented CORE client. Same cluster split.

revoke_grant

implemented CORE client. Same cluster split.

check_grant

implemented CORE client. Same cluster split.

pay

implemented INTENTS client. MAINNET: real INTENTS id 3HCErAFs93FMk2J25Qq1xRRMp6B4FyGvif8ZV8hYxQKw. DEVNET rehearsal: old grokchain-devnet INTENTS id. localnet: local-only INTENTS id. Relayer fee-pays. Human-funded vaults. Lands only if the human has rooted the account, issued a grant allowlisting the cluster INTENTS id, funded SpendVault + Paymaster, and set RELAYER_KEYPAIR. Otherwise need_human_signature / need_human_setup. Do not fake a send.

vault / paymaster CLI

implemented INTENTS client (same ids as pay). Root-signed. Human funds.

swap

implemented INTENTS client. Grant-gated SOL send with min_out. Not an AMM. Not Jupiter. MAINNET: live on upgraded 3HCErAF. Unchanged.

token_buy / token_sell

implemented INTENTS client. Grant-gated Jupiter v6 (JUP6LkbZbjS1jKKwapdHNy74zcZ3tLUZoi5QNyVTaV4). Fetches lite-api.jup.ag/swap/v1 quote + swap-instructions (fallback quote-api.jup.ag/v6). remaining from that response. User is the pump-trader PDA. Quote mint may be WSOL, official USDC, or another SPL/Token-2022 mint. SOL/WSOL in: check_grant(sol). USDC/other already on trader: check_grant(0). Adapter wraps SOL; does not unwrap. Not PumpPortal. Old swap is still the SOL send.

deploy

implemented INTENTS client. check_grant(0) + DeployRequested. Not a BPF deploy. No ELF. MAINNET: live as a grant event.

call

implemented INTENTS client. amount 0 = policy ping. amount > 0 debits SpendVault. remaining empty = grant-checked only. MAINNET: live.

pump_buy / pump_sell / pump_create

MCP client still in git. MAINNET: cut from the live 3HCErAF payments ELF for size. Do not send. Jupiter token_buy/token_sell stay.

pump_amm_buy / pump_amm_sell

MCP client still in git. MAINNET: cut from the live 3HCErAF payments ELF for size. Do not send. Jupiter token_buy/token_sell still reach graduated pump coins.

pay_token

implemented INTENTS client. SPL / Token-2022 to an approved merchant. MAINNET: live on 3HCErAF. Merchant registry + subscriptions on the same binary. A live 0.01 USDC pay_token landed (sig 4nhDmpmy… slot 442631317) to EcSnayFc ATA BhJew4E7…. Merchant registry 3M5Thn45 live. Agent 0 SOL. This is a Solana USDC transfer from a grant-gated bot. Do not say merchants accept Grok Chain. Do not invent TVL or partners.

withdraw_pump_trader

implemented INTENTS client. Root-only, not grant-gated. SOL + token ATA sweep. Does not close trader. Human CLI: grokchain vault withdraw-pump-trader [--lamports n] [--sol n] [--atas from,to,...]. MAINNET: proven on 3HCErAF. Not an agent intent.

Optional read-only: get_account, get_grant.

pay is implemented against INTENTS. It does not send a system transfer. Agent signs. Relayer is the fee payer. Human-funded SpendVault is the SOL source. Optional sponsor reimburses the relayer from YOUR paymaster.

MAINNET

GROKCHAIN_CLUSTER=mainnet-beta plus config/mainnet.json, or GROKCHAIN_CONFIG. Env GROKCHAIN_PROGRAM_ID / GROKCHAIN_INTENTS_PROGRAM_ID override file values if set.

Real MAINNET program ids:

There is no setup --mainnet. Do not use setup --devnet as the MAINNET path. Each root funds their own vault, paymaster, and relayer. Do not send SOL to EcSnayFcwspNch8ChurzLwmg8zAsRPLtysUrf1QuPtXX or E8Pm8RG6L2qxLKTtMgYr8JQgJJtbRTzyKCdJRiPQSL1z.

On MAINNET, create/issue/revise/revoke/check_grant, pay/vaults, pay_token, token_buy/token_sell, swap, call, and deploy are implemented clients against the real deployed ids. pump_buy / pump_amm_* were cut from the live binary for size. Live clients land only if the human has rooted the account, issued a grant allowlisting the MAINNET INTENTS id 3HCErAFs93FMk2J25Qq1xRRMp6B4FyGvif8ZV8hYxQKw, funded SpendVault + Paymaster, and set RELAYER_KEYPAIR. Otherwise need_human_signature / need_human_setup. deploy is a grant event, not an ELF upload. swap is SOL min_out, not an AMM.

DEVNET rehearsal

GROKCHAIN_CLUSTER=devnet plus config/devnet.json, or GROKCHAIN_CONFIG, or grokchain --config config/devnet.json. Env GROKCHAIN_PROGRAM_ID / GROKCHAIN_INTENTS_PROGRAM_ID override file values if set.

Real grokchain-devnet deployed program ids:

Never use the two local-only ids (8WDhHSfrz6hMkmX7WteAAmyuWFLryHM2Kfc1r4k8EFXE and AXprcURLhSqj35v9DJyBkTSPGSoZ9AfTRxYyguQJwnT2) on devnet. Those are refused — they are local-only, not a deployed program, not valid on devnet. They remain the localnet defaults only.

Relayer still fee-pays. Human still funds vaults.

On devnet, create/issue/revise/revoke/check_grant and pay/vaults are implemented clients against the real deployed ids. They land only if the human has rooted the account, issued a grant allowlisting the devnet INTENTS id EYhYtqLViS4H3FNt1Q8nGRHGt9oD87uaNsV2WJMNiRkz, funded SpendVault + Paymaster, and set RELAYER_KEYPAIR. Otherwise need_human_signature / need_human_setup. swap/deploy/call are implemented clients in this source. They were not upgraded on the grokchain-devnet INTENTS binary in this change. Do not claim those ixs are live on public Solana.

One command (MAINNET)

See GETTING-STARTED.md. Human wallet is the only secret they keep. Agent and relayer are host files mode 0600. Relayer pays fees. Human funds vaults. Bot never holds SOL. CORE/INTENTS ids are the real MAINNET ones. swap/deploy/call/pay_token are on the live MAINNET payments ELF. pump_buy / pump_amm_* are not. There is no setup --mainnet. Set CLUSTER, RPC, PROGRAM_ID, INTENTS, ROOT_KEYPAIR, then run the MCP. DEVNET rehearsal still has setup --devnet.

export GROKCHAIN_CLUSTER=mainnet-beta
export GROKCHAIN_RPC_URL=https://api.mainnet-beta.solana.com
export GROKCHAIN_PROGRAM_ID=44fxwzuEyNxZtgDr87mTtMYYJ1LJm6cB5aZNLyBsPjNd
export GROKCHAIN_INTENTS_PROGRAM_ID=3HCErAFs93FMk2J25Qq1xRRMp6B4FyGvif8ZV8hYxQKw
export GROKCHAIN_ROOT_KEYPAIR=$HOME/.config/solana/id.json
npx -y github:grokloop/grokchain-mcp

DEVNET rehearsal two-liner (not the MAINNET path):

export GROKCHAIN_ROOT_KEYPAIR=$HOME/.config/solana/id.json
npx -y github:grokloop/grokchain-mcp grokchain setup --devnet

Clone fallback:

git clone https://github.com/grokloop/grokchain-mcp && cd grokchain-mcp && npm i && npm run build && node dist/index.js

Install and run

Node 20+.

Env (paths, not secrets)

GROKCHAIN_CLUSTER: localnet (default), devnet, or mainnet-beta GROKCHAIN_RPC_URL: RPC URL (default follows cluster) GROKCHAIN_CONFIG: path to JSON config (e.g. config/mainnet.json or config/devnet.json)

GROKCHAIN_PROGRAM_ID: CORE id; required except localnet GROKCHAIN_INTENTS_PROGRAM_ID: INTENTS id; required except localnet GROKCHAIN_ROOT_KEYPAIR: path to the human wallet file GROKCHAIN_AGENT_KEYPAIR: path to the agent keystore file GROKCHAIN_RELAYER_KEYPAIR: path to the relayer keystore file

If a required path is missing the tool returns need_human_signature or need_human_setup with an unsigned tx (base64) and a pointer to HUMAN.md. Never ask the bot for a key.

Cursor MCP config (stdio)

Use command npx with arg grokchain-mcp over stdio. Set GROKCHAIN_CLUSTER to mainnet-beta (or localnet / devnet), GROKCHAIN_RPC_URL to match, GROKCHAIN_PROGRAM_ID and GROKCHAIN_INTENTS_PROGRAM_ID to the cluster ids, GROKCHAIN_ROOT_KEYPAIR to the absolute path of the human wallet file, GROKCHAIN_AGENT_KEYPAIR to the absolute path of the agent keystore, and GROKCHAIN_RELAYER_KEYPAIR to the absolute path of the relayer keystore. Env vars name paths, not secrets.

Keys

Tools, schemas, results, logs, README, and the skill never accept or return seed phrases or raw key material. agent init and relayer init write a host file mode 0600 and print the pubkey only.

Human CLI

See GETTING-STARTED.md and HUMAN.md.

grokchain root create-account
grokchain agent init
grokchain relayer init
grokchain root issue-grant --agent PK --cap LAMPORTS --expires UNIX --programs INTENTS_ID [--sponsor]
grokchain vault init-spend
grokchain vault fund-spend --sol 0.05
grokchain paymaster init --relayer PK
grokchain paymaster fund --sol 0.02
grokchain root revise-grant
grokchain root revoke-grant --agent PK
grokchain setup --devnet
grokchain status

On localnet, --programs is the local-only INTENTS id AXprcURLhSqj35v9DJyBkTSPGSoZ9AfTRxYyguQJwnT2 (not live). On MAINNET, --programs is the real INTENTS id 3HCErAFs93FMk2J25Qq1xRRMp6B4FyGvif8ZV8hYxQKw. DEVNET rehearsal uses EYhYtqLViS4H3FNt1Q8nGRHGt9oD87uaNsV2WJMNiRkz.

grokchain fund --to agent is removed (old wrong path). The bot never holds SOL. Human funds SpendVault and Paymaster. Relayer submits.

Grok Build skill

skills/grok-build/SKILL.md teaches a bot to use the tool names, refuse keys, use the local-only pair only on localnet, use the MAINNET ids on mainnet-beta, the grokchain-devnet ids on DEVNET rehearsal, and never hold SOL.

License

MIT. See LICENSE.

Available Tools

11 tools
callA

Honest STUB. INTENTS call returns IntentStub. Not implemented.

Inputs: no named parameters.

check_grantC

Agent consume path. Agent signs. Increments spent_lamports. Does not move SOL. Empty allowlist is denied. cap 0 requires amount 0. Optional root if not in config. Relayer submits if you also call pay.

Inputs: target_program (required), amount_lamports (required), root, agent, +1 more.

create_accountA

Create the GrokAccount PDA for the human root. Root-signed. On localnet uses the local-only CORE id. On devnet uses the grokchain-devnet CORE program. If the root keypair path is missing, returns need_human_signature / need_human_setup and an unsigned tx. Never ask for a seed or key.

Inputs: root, dry_run.

deployA

Honest STUB. INTENTS deploy returns IntentStub. Not implemented.

Inputs: no named parameters.

get_accountA

Read-only. Fetch the GrokAccount PDA if it exists. No signing.

Inputs: root.

get_grantB

Read-only. Fetch the Grant PDA if it exists. No signing. label is untrusted text.

Inputs: root, agent.

issue_grantA

Issue a capability Grant PDA to an agent pubkey. Root signs. Agent does not sign issue. expires_at_unix required and must be in the future. allowed_programs max 8, no duplicates, empty deny-all. cap 0 = call-only. v1 allowlist is router mode: localnet allowlists the local-only INTENTS id; devnet allowlists the grokchain-devnet INTENTS id (EYhYtq…). sponsor_eligible means this grant may use YOUR paymaster — not a promise Grok Chain pays.

Inputs: agent (required), expires_at_unix (required), allowed_programs (required), spend_cap_lamports (required), +4 more.

payB

Implemented INTENTS pay. On localnet uses the local-only intents id. On devnet builds against the grokchain-devnet INTENTS program. Agent signs. Relayer is the outer fee payer. Bot never holds SOL. Human-funded SpendVault is the SOL source. Optional sponsor reimburses the relayer from YOUR paymaster. Lands only if the human has rooted the account, issued a grant allowlisting the INTENTS id, funded SpendVault + Paymaster, and set RELAYER_KEYPAIR. Otherwise need_human_signature / need_human_setup.

Inputs: to (required), amount_lamports (required), root, dry_run, +1 more.

revise_grantA

Replace Grant policy fields. Root signs. Agent cannot revise. Same policy rules as issue_grant. Cannot change the agent (different PDA).

Inputs: agent (required), expires_at_unix (required), allowed_programs (required), spend_cap_lamports (required), +4 more.

revoke_grantB

Revoke a Grant. Root signs. Account is not closed. Agent cannot revoke.

Inputs: agent (required), root, dry_run.

swapA

Honest STUB. INTENTS swap returns IntentStub. Not implemented. Does not call a DEX.

Inputs: no named parameters.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.5/5.0

    Scored across 11 tools

    Disambiguation5/5

    Each tool has a distinct purpose: account creation/read, grant lifecycle (issue, revise, revoke, check), payment, and stubs for swap/deploy/call. Even the stubs are clearly labeled as not implemented, preventing confusion. The only slight overlap between check_grant and pay is resolved by descriptions: check_grant only increments spent_lamports without moving SOL, while pay executes an actual payment.

    Naming Consistency3/5

    The naming pattern is inconsistent: some tools follow verb_noun (create_account, issue_grant, get_grant) while others are single verbs (pay, swap, deploy, call). Additionally, verbs for similar actions vary (issue vs create, revise vs update). Despite this, the names are readable and convey meaning, but the lack of a uniform pattern reduces predictability.

    Tool Count5/5

    With 11 tools, the server is well-scoped. It covers account management, grant lifecycle, payment, and read operations without excessive fragmentation. Each tool serves a clear role in the domain, and the count fits comfortably within the ideal 3-15 range.

    Completeness4/5

    The tool set covers the core workflows: creating and reading accounts, issuing/revising/revoking/checking grants, and making payments. The stubs for swap/deploy/call indicate planned features, not gaps. Missing operations like listing all grants or funding the vault are minor and can be handled externally, so the surface is largely complete.

    Maintenance

    ActivityStale
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      F
      maintenance
      Enables AI agents to perform financial transactions such as direct payments, escrows, and bounty management using natural language with zero code integration. It provides a comprehensive suite of tools for fund streaming, subscriptions, and reputation tracking to facilitate secure agent-to-agent commerce.
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables AI agents to manage USDC wallets on Solana, allowing them to send payments, create invoices, and access paid APIs within human-defined spending limits. It uses threshold signatures to provide agents with financial autonomy while ensuring secure oversight and transaction approval.
      36
      248 npm
      4
      Apache 2.0
    • A
      license
      B
      quality
      D
      maintenance
      Enables AI agents to perform gasless cross-chain transactions by paying with supported tokens on one chain and executing on another, all without exposing private keys.
      19
      34 npm
      1
      Apache 2.0