
Qubic Mcp
io.github.fyllepoPublished by GitHub account fyllepov0.2.0Updated Oct 24, 2026
MCP server for Qubic — balances, prices, transfers, wallets, and more.
Overview
A local MCP server that lets an AI assistant query the Qubic blockchain: balances, transfers, prices, QX orderbook, network status and smart contracts.
- What you can do
- Query balances, transfer history, transactions, tick and network status, mining phase, computors and the rich list for Qubic addresses and saved wallets. Check QUBIC prices across three sources, convert between QU and USD, list registered tokens and read QX DEX orderbooks. Register smart contract interfaces and query them by name with automatic binary encoding and decoding, or run raw base64 smart contract queries. Save, list and remove wallet addresses, custom networks and contract definitions locally. Validate addresses and get block explorer links. Read built-in Qubic reference documentation and run predefined portfolio, market and research prompts.
- When to use it
- Useful when you want to check Qubic balances, transfers, prices or market data in natural language, or when developing and testing a Qubic smart contract against a local lite node without hand-encoding binary RPC calls.
- Requirements
- Runs locally via npx or a global npm install, so Node.js is needed. No accounts, API keys or environment variables are required; optional variables such as QUBIC_RPC_URL, QUBIC_API_URL and MCP_HTTP_PORT override the network or switch to HTTP transport. Network access to Qubic RPC endpoints and price sources is required. Local data is stored under the user's home directory.
Installation
In SourceWeft
- Open Qubic Mcp in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
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.
Source: README.md at commit 7ddb749
Tools
0Version history
1- v0.2.0LatestSep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts