circuit-mcp
OfficialThe circuit-mcp server turns an AI agent into a Solana data analyst and swarm-intelligence trader with read-only tools, guided prompts, and free ambient resources — auto-paid per call in CIRC via x402, no API keys needed.
Free Tools
Live token prices (individual, batch, SOL oracle), OHLCV candlesticks, and on-chain dip-reversal scanning
Swarm intelligence: agent reputation leaderboard, fleet holdings (smart-money positioning), crowd-sourced rug blacklist with check functionality, and live fleet activity stats
Paid Advanced Analytics (~$0.002–$0.01/call)
Live swarm buy/sell/rug signals (filterable by agent reputation)
Reputation-weighted token consensus with confidence score
Full token security audits (authority analysis, LP lock %, creator balance, risk flags)
Holder concentration analysis (top-5/10/20) for whale/rug signals
Token overview combining price, metadata, security, and pool data in one call
Trending and new token discovery across RugCheck, DexScreener, and volume signals
Wallet P&L (realized/unrealized) and behavioral analytics (win rate, hold times, sizing)
Market regime indicators, fear/greed gauges, and broad market snapshots
Pre-trade price impact / slippage estimates
Aggregated swarm pattern insights
Guided Prompts (pre-built multi-tool workflows)
rug_check— blacklist + security audit + holder concentration + swarm consensusape_check— consensus + security + slippage estimate + market regimeswarm_pulse— fleet stats + holdings + leaderboard + live signals
Free Ambient Resources (no tool call cost)
Live price quotes, swarm leaderboard, fleet holdings, rug blacklist, and accepted x402 payment tokens
Payments & Safety
All paid tools settle on Solana in CIRC (or other registered tokens) with configurable per-call and per-process spend caps and an optional payee allow-list; tools are strictly read-only beyond the micropayment itself
Zero setup friction — add one line to any MCP client (Claude Desktop, Claude Code, etc.); omit wallet config to use free tools only
Provides tools for querying real-time Solana blockchain data, including token prices, security audits, trending tokens, and agent swarm intelligence signals, with automatic micropayments in CIRC tokens.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@circuit-mcpwhat's the swarm's consensus on this mint?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
circuit-mcp
Give any AI agent Circuit's real-time Solana data and agent-swarm intelligence as tools — auto-paid per call in CIRC over x402. No API keys, no signup. Add it to Claude Desktop, Claude Code, or any agent runtime with one line.
Website · Data API · Circuit SDK · Telegram · X / Twitter
Beta software. circuit-mcp is under active development — expect breaking changes, incomplete features, and rough edges. Paid tools spend real CIRC per call; start with the free tools (or a small spend cap) until you're comfortable with how it behaves.
What it does
A thin Model Context Protocol server over @circuit-llm/data. It exposes Circuit's real-time Solana data as tools any MCP client can call — and auto-pays for them per call in CIRC over x402. Free tools return data directly; paid tools are auto-paid from your wallet, bounded per call and per session. No API keys, no accounts.
The differentiator is the swarm_* tools: live signals, consensus, leaderboard, holdings, and a crowd-sourced rug blacklist from Circuit's running trading-agent fleet — data no generic price API has.
29 data tools (14 free) + dllm_chat (decentralized LLM inference) + pay_settle, 3 guided prompts, and 5 free ambient resources. Every tool is read-only.
Related MCP server: @portalsprotocol/mcp-server
Quick Start
Add it to any MCP client (Claude Desktop, Claude Code, an agent runtime):
// claude_desktop_config.json → "mcpServers"
{ "circuit": { "command": "npx", "args": ["-y", "@circuit-llm/mcp"],
"env": { "CIRCUIT_WALLET": "<base58 secret funded with CIRC>" } } } // omit → free tools onlyThen ask your agent "what's the swarm's consensus on this mint?" or "audit this token for rug risk." The paid tools settle on Solana in ~400ms behind the scenes. Without CIRCUIT_WALLET, the free tools still work — and paid tools return an x402 quote you can pay from your own wallet and complete with pay_settle (see pass-through).
Tools
Free — price & market data
Tool | What |
| live price list for every tool (call this first) |
| aggregated USD price (Jupiter + DexScreener + CoinGecko) |
| sub-second batch prices (≤20 mints) from the gRPC indexer |
| current SOL/USD oracle price |
| OHLCV candlesticks (1m/5m/1h/1d) from the on-chain feed |
| on-chain dip-reversal scanner |
| pre-trade price-impact estimate |
| tokens accepted to pay Circuit's x402 endpoints (universal adapter) |
Free — swarm intelligence ⭐ (the differentiator)
Tool | What |
| agents ranked by reputation — whose signals to trust |
| what the fleet is holding right now (live smart-money positioning) |
| crowd-sourced rug/scam avoid-list with reasons |
| fast single-token "is this flagged?" check |
| live fleet activity + signal volume |
Paid (auto-paid in CIRC via x402)
Tool | Cost | What |
| ~$0.002 | live buy/sell/rug signals from the swarm |
| ~$0.002 | reputation-weighted swarm view on one token |
| ~$0.002 | aggregated patterns the swarm is seeing |
| ~$0.003 | rug-risk audit — authorities, LP lock, risk flags |
| ~$0.003 | price + metadata + security + pools in one call |
| ~$0.005 | metadata + market data (supply, mcap, FDV, liquidity) |
| ~$0.005 | holder count + top-5/10/20 concentration |
| ~$0.005 | top traders by volume (Birdeye) — wallet, whale tags, buy/sell, USD volume |
| ~$0.002 | trending tokens across sources |
| ~$0.002 | freshly launched tokens (discovery feed) |
| ~$0.01 | realized/unrealized P&L for any wallet |
| ~$0.01 | behavioral profile — win rate, hold times, sizing |
| ~$0.002 | risk-on/risk-off macro read |
| ~$0.002 | fear/greed gauge |
| ~$0.002 | broad market snapshot + top movers |
| ~$0.002 | global NFT market snapshot — collections, listings, bid coverage, arb count, median floor |
| ~$0.003 | all Tensor collection floors + listing counts, sortable |
| ~$0.003 | one collection: floor, cheapest listings, top bid, royalty, net spread |
| ~$0.005 | mark-to-market NFT arb — floor ≤ best bid, ranked by net spread |
| ~$0.002 | inspect one NFT by mint (listed?, price, floor, sellable-into-bid) |
| ~$0.003 | full standing collection-bid depth (highest first) |
| ~$0.002 | resolve a collection by name → on-chain address + floor |
| ~$0.003 | recent listing activity (velocity read, not confirmed sales) |
| ~$0.005 | a wallet's NFTs + floor mark-to-market total |
Prices are live from circuit_quote (/api/quote); a few paid endpoints are intermittently ungated (free).
Paid — decentralized inference
Tool | Cost | What |
| ~$0.03 | chat completion from Circuit's decentralized LLM (Qwen2.5-72B) over x402 |
dllm_chat pays per call in CIRC — the same x402 rail as the data tools, not model credits. Pass prompt (single turn, optional system) or full OpenAI-style messages. The result includes a backend field: mesh = the decentralized DLLM, openrouter-fallback = a hosted fallback model served while the mesh is offline (so a paid call never dead-ends). Point it elsewhere with CIRCUIT_INFERENCE_URL (default https://inference.circuitllm.xyz).
Settlement — pay_settle: when the server has no wallet, a paid tool returns an x402 quote instead of paying. Pay it on Solana yourself (CIRC to the recipient, or any registered token to its collector), then call pay_settle with the same { tool, args } and your transaction signature to get the data. With a funded CIRCUIT_WALLET, paid tools auto-pay and you never need this.
Prompts
Guided workflows that chain the right tools for a single intent:
Prompt | Args | What it does |
|
| blacklist + security + holders + consensus → SAFE / CAUTION / AVOID |
|
| consensus + security + slippage + regime → GO / NO-GO |
| — | stats + holdings + leaderboard + fresh buy signals → what the fleet is doing |
Resources
Free, read-only ambient context a client can pull without a tool call: circuit://quote, circuit://swarm/leaderboard, circuit://swarm/holdings, circuit://swarm/blacklist, circuit://x402/accepted-tokens.
Configuration
All configuration is via environment variables.
Variable | Default | Purpose |
| — | base58 secret key that funds micropayments (omit → free tools only) |
|
| per-call CIRC spend cap |
|
| per-process CIRC cap — the runaway-spend guard; paid tools stop once reached |
|
| outer per-tool-call backstop (a genuinely stuck call returns a clean error) |
| — | if set, only ever pay this address (recipient allow-list — recommended) |
|
| override the data API base |
|
| override the DLLM inference gateway base ( |
| public RPC | Solana RPC used to send payments — set your own; the public default rate-limits |
| — | pay in a registered token instead of CIRC (see Paying in another token) |
| — | required with |
| — | optional cumulative foreign-token ceiling (base units) — the drain guard |
Paying in another token
Circuit's Universal x402 Adapter lets any registered token pay Circuit's x402
endpoints — the token is swapped to CIRC on the back end. To have this server pay for tools in a registered
token instead of CIRC, set CIRCUIT_PAYMENT_MINT to that mint (call x402_accepted_tokens to see what's
registered) and CIRCUIT_MCP_MAX_PAYTOKEN to a per-call ceiling in the token's base units. The ceiling is
mandatory — without it the server fails closed and keeps paying CIRC. Any endpoint that doesn't accept the token
also falls back to CIRC automatically. Requires a funded CIRCUIT_WALLET that holds the token.
Safety
Spend is bounded two ways —
CIRCUIT_MCP_MAX_SPEND_CIRCper call andCIRCUIT_MCP_MAX_TOTAL_CIRCper process (the drain guard against a looping agent). SetCIRCUIT_TREASURYto pin the payee so a hostile endpoint can't redirect funds.Read-only — every tool is a data fetch; none move funds beyond the micropayment.
No bypass — this package always pays per call; the internal-key bypass is a Circuit-hosted concern, never a user knob (see docs/HOSTING.md).
Protocol-safe — all logs go to stderr; stdout is reserved for the MCP channel.
How it works
Each paid tool call hits the Circuit Data API: a free endpoint returns data; a paid one answers 402 Payment Required with a CIRC quote. @circuit-llm/data pays the quote from your wallet on Solana and retries — the spend caps and CIRCUIT_TREASURY allow-list bound where and how much.
Pass-through (no wallet). Without CIRCUIT_WALLET, the server doesn't pay — it returns that 402 quote to the caller. You pay it yourself and finish with pay_settle; the data API verifies the signature on-chain (single-use, ≤5 min), so the server never holds funds. This is how a wallet-free hosted endpoint (like mcp.circuitllm.xyz) lets each caller pay per call in their own token. For a Circuit-fronted hosted deployment, see docs/HOSTING.md.
Develop
git clone https://github.com/Circuit-LLM/MCP && cd MCP
npm install
npm run smoke # spawn the server via a real MCP client, list tools, exercise the free tools (no spend)
npm start # run the server over stdioBuilt on @circuit-llm/data + @circuit-llm/wallet + the MCP TypeScript SDK.
Part of the Circuit Stack
circuit-mcp — this repo, Circuit data + swarm intel as x402-paid MCP tools
circuit-sdk — the TypeScript SDK (x402 · data · wallet · agent · inference)
circuit-data-api — the x402-gated Solana data aggregator these tools serve
circuit-agent — the autonomous trading agent behind
swarm_feedcircuitllm.xyz — website and data terminal
License
MIT — see LICENSE.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
AlicenseNot gradedqualityDmaintenanceEnables AI agents to discover, pay for, and sell APIs using crypto on Solana and Base networks, with support for automated x402 payments.1603MIT- AlicenseNot gradedqualityDmaintenanceConnects AI agents to decentralized, community-built APIs on Solana, enabling autonomous discovery, payment, and execution of tools without subscriptions or API keys.10MIT
- AlicenseBqualityCmaintenanceProvides 13 Solana DeFi intelligence tools for AI agents, paid per-call via micropayments (USDC). Enables pulling live DeFi data and automatic payment settlement.13631MIT
- FlicenseAqualityCmaintenancePay-per-call tools for AI agents including trust checks, due diligence, market data, and human-verified approvals, settled in USDC on Base via the x402 protocol.16
Related MCP Connectors
Pay-per-use weather, environment, finance, and on-chain intelligence tools for AI agents via x402.
63 pay-per-call tools for agents: vision, text, data, web, blockchain. USDC on Base via x402.
Intelligence marketplace on Solana — 86 tools, 168+ endpoints, per-call USDC.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Circuit-LLM/MCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server