circuit-mcp

circuit-mcp

Provides AI agents with real-time Solana data and agent-swarm intelligence as tools, with auto-paid per-call micropayments in CIRC via x402.

Category
访问服务器

README

<div align="center">

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.

Node.js Version MCP x402 License

Website · Data API · Circuit SDK · Telegram · X / Twitter

</div>

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 buy/sell/rug signals from Circuit's running trading-agent fleet — data no generic price API has.

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 only

Then 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.

Tools

Tool Cost What
circuit_quote free live price list for every tool
token_price free aggregated USD price (Jupiter + DexScreener + CoinGecko)
live_prices free sub-second batch prices (≤20 mints) from the gRPC indexer
scan free on-chain dip-reversal scanner
swarm_feed ~$0.002 live buy/sell/rug signals from the Circuit agent swarm
swarm_consensus ~$0.002 reputation-weighted swarm view on one token
token_security ~$0.003 rug-risk audit — authorities, LP lock, risk flags
token_overview ~$0.003 price + metadata + security + pools in one call
trending ~$0.002 trending tokens across sources
token_holders ~$0.005 holder count + top-5/10/20 concentration

Prices are live from circuit_quote (/api/quote); a few endpoints are currently ungated (free).

Configuration

All configuration is via environment variables.

Variable Default Purpose
CIRCUIT_WALLET base58 secret key that funds micropayments (omit → free tools only)
CIRCUIT_MCP_MAX_SPEND_CIRC 1000 per-call CIRC spend cap
CIRCUIT_MCP_MAX_TOTAL_CIRC 50000 per-process CIRC cap — the runaway-spend guard; paid tools stop once reached
CIRCUIT_MCP_TIMEOUT_MS 120000 outer per-tool-call backstop (a genuinely stuck call returns a clean error)
CIRCUIT_TREASURY if set, only ever pay this address (recipient allow-list — recommended)
CIRCUIT_DATA_URL https://api.circuitllm.xyz override the data API base
CIRCUIT_RPC_URL public RPC Solana RPC used to send payments — set your own; the public default rate-limits

Safety

  • Spend is bounded two waysCIRCUIT_MCP_MAX_SPEND_CIRC per call and CIRCUIT_MCP_MAX_TOTAL_CIRC per process (the drain guard against a looping agent). Set CIRCUIT_TREASURY to 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. For a hosted deployment (Circuit fronts payment so agents need no wallet), 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 stdio

Built 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_feed
  • circuitllm.xyz — website and data terminal

License

MIT — see LICENSE.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选