
Qubic Mcp
io.github.fyllepo由 GitHub 账号 fyllepo 发布v0.2.0更新于 Oct 24, 2026
MCP server for Qubic — balances, prices, transfers, wallets, and more.
概览
本地运行的 MCP 服务器,让 AI 助手查询 Qubic 区块链:余额、转账、价格、QX 订单簿、网络状态和智能合约。
- 可以做什么
- 查询 Qubic 地址和已保存钱包的余额、转账历史、交易、当前 tick 与网络状态、挖矿阶段、computor 和富豪榜。对比三个来源的 QUBIC 价格,在 QU 与 USD 之间换算,列出已注册代币并读取 QX 去中心化交易所订单簿。注册智能合约接口定义并按名称查询,自动完成二进制编码与解码,也可执行原始 base64 合约查询。在本地保存、列出和删除钱包地址、自定义网络和合约定义。校验地址格式并获取区块浏览器链接。读取内置 Qubic 参考文档,运行预设的投资组合、市场和调研提示词。
- 适用场景
- 适合用自然语言查看 Qubic 余额、转账、价格或市场数据,也适合在本地 lite 节点上开发和测试 Qubic 智能合约,免去手工编码二进制 RPC 调用。
- 运行要求
- 通过 npx 或全局 npm 安装后在本地运行,需要 Node.js。无需账号、API 密钥或环境变量;可选变量如 QUBIC_RPC_URL、QUBIC_API_URL 和 MCP_HTTP_PORT 可覆盖网络或改用 HTTP 传输。需要访问 Qubic RPC 端点和价格来源的网络连接。本地数据保存在用户主目录下。
安装
在 SourceWeft 中
- 打开 控制台中的 Qubic Mcp,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
qubic-mcp
MCP server for the Qubic cryptocurrency — enabling AI assistants to interact with the Qubic network.
[npm version] [CI] [License: MIT] [PRs Welcome]
Overview
qubic-mcp is an open-source Model Context Protocol (MCP) server that gives AI assistants — Claude, ChatGPT, Copilot, Cursor, and others — native access to the Qubic blockchain.
Query balances, inspect transactions, monitor the network, trade on QX, switch between networks, and interact with smart contracts — all through natural language.
What's New in v0.4
- Smart Contract Profiles — Register custom SC interface definitions, then query them by name with automatic binary encoding/decoding
- Network Management — Save and switch between mainnet, testnet, or your own local/lite node at runtime
- Epoch Computors — Query the 676 computor identities for any epoch
- MCP Prompts — Predefined workflows for portfolio analysis, market overview, and research
- MCP Resources — Qubic reference documentation (network, tokenomics, smart contracts, address format)
- HTTP Transport — Run as a standalone HTTP server for remote deployment
Features
Blockchain Query Tools
- Balance & Transfers — Query any Qubic address balance and transfer history
- Transactions — Look up transaction details by ID
- Network Status — Current tick, epoch, supply, burned QUs, active addresses, market cap
- Mining Phase — Current MINING/IDLE phase, cycle progress, and XMR marathon status
- Epoch Computors — List all 676 computor identities for a given epoch
- Rich List — Top holders ranked by balance
Market & Analytics
- Token Price — Real-time QUBIC price compared across 3 sources (CoinGecko, Qubic API, CryptoCompare)
- QU/USD Converter — Convert between QU and USD at live rates
- Token Registry — List all registered Qubic tokens with issuer and website
- QX DEX Orderbook — Live ask/bid orders for any token on the QX decentralized exchange
Smart Contract Tools
- Register Contract — Save a custom SC interface definition (function names, input/output field schemas)
- Query Contract — Query a registered SC function by name with automatic binary encoding/decoding
- Raw SC Query — Low-level smart contract query with base64 input/output for advanced use
- List/Remove Contracts — Manage your registered contract definitions
Local Management
- Wallet Management — Save wallet addresses locally for quick access
- Network Switching — Save and switch between mainnet, testnet, or custom RPC endpoints at runtime
- Address Validation — Check format and on-chain activity
- Explorer Links — Direct links to the official Qubic block explorer
AI Context
- MCP Resources — Qubic reference docs (network, tokenomics, smart contracts, address format) available as context
- MCP Prompts — Predefined workflows: portfolio analysis, market overview, and Qubic research
Quick Start
Works with any MCP-compatible AI client — Claude, ChatGPT, Copilot, Cursor, Windsurf, Gemini, JetBrains, and more.
Add this to your client's MCP config:
Where to find the config file
For other clients, check your app's MCP documentation — the config above is universal.
Then just ask in plain English:
Wallet Management
Balances & Transfers
Price & Market
Network & Mining
QX DEX & Tokens
Network Switching
Smart Contract Queries
Smart Contract Development Workflow
One of the most powerful features of qubic-mcp is its smart contract profile system. If you're developing a Qubic smart contract on a local lite network, you can use the MCP to test your contract's RPC interface directly through your AI assistant.
Why This Matters
Qubic smart contracts communicate via binary-encoded structs over the /v1/querySmartContract RPC endpoint. Without tooling, this means manually encoding fields into base64, making HTTP calls, and decoding binary responses — error-prone and tedious.
With qubic-mcp, you register your contract's interface once, and then query it by name with human-readable input and output. Your AI assistant handles all the binary encoding/decoding automatically.
Step-by-Step
1. Point the MCP at your test network:
Your MCP server now talks to your local lite node instead of mainnet. This persists across sessions in ~/.qubic-mcp/networks.json.
2. Register your contract's interface:
Tell the assistant your contract's index and function definitions. Here's a simple counter contract at index 10 as an example:
The assistant will call register_contract with the proper field schema JSON. The definition is saved to ~/.qubic-mcp/contracts.json and persists across sessions.
Supported field types: uint8, uint16, uint32, uint64, int8, int16, int32, int64, identity (60-char Qubic address / 32-byte pubkey), padding (skipped bytes).
Fields support count for arrays and enum for value-to-label mapping.
3. Query your contract by name:
The MCP encodes your input into binary, calls the RPC endpoint, and decodes the response into named fields:
4. Switch back to mainnet when done:
Installation
From npm (recommended)
From source
Configuration
Network Management
The easiest way to configure which Qubic network you talk to is through the built-in tools — no env vars needed:
- Add a custom network:
add_network— save your local node's IP with a friendly name - Switch networks:
switch_network— toggle between mainnet, testnet, or any saved network - List networks:
list_networks— see all available networks and which is active
Networks are saved to ~/.qubic-mcp/networks.json and persist across sessions. Built-in networks (mainnet, testnet) are always available.
Environment Variables
For advanced use or CI environments, you can also configure via env vars. See .env.example.
HTTP Transport
By default the server uses stdio, which is what most MCP clients expect. To run it as a standalone HTTP endpoint instead, set MCP_HTTP_PORT:
The server exposes a single /mcp endpoint that supports the MCP Streamable HTTP transport:
- POST /mcp — send JSON-RPC requests (initialize creates a session)
- GET /mcp — open an SSE stream for server notifications (requires
mcp-session-idheader) - DELETE /mcp — terminate a session
All Tools
Blockchain
Market & Tokens
Smart Contract Development & Testing
Wallets
Network Management
Utility
MCP Resources
MCP Prompts
Local Data
qubic-mcp stores local data in ~/.qubic-mcp/:
Security
This project takes security seriously, especially given it interacts with a financial network.
- No private keys — This server is read-only. It never asks for, stores, or transmits private keys or seeds.
- Input validation — All inputs are validated with Zod schemas before processing.
- No telemetry — No analytics, tracking, or data collection of any kind.
- Auditable — Fully open source. Read every line.
See SECURITY.md for our vulnerability disclosure policy.
Contributing
Contributions are welcome and encouraged! Whether you're fixing a bug, adding a new tool, improving docs, or suggesting an idea — we'd love your help.
See CONTRIBUTING.md for guidelines.
Roadmap
See ROADMAP.md for our planned features and future direction.
License
MIT — see LICENSE.
Disclaimer
This software is provided "as is" without warranty of any kind. The authors and contributors are not responsible for any loss of funds, data, or other damages resulting from the use of this software.
This tool interacts with the Qubic blockchain where transactions are irreversible. Users are solely responsible for verifying all information and understanding the risks. This software does not provide financial advice.
来源:README.md,提交 7ddb749
工具
0版本历史
1- v0.2.0最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分