# qubic-mcp [Health: Active]

**Category:** 💰 Finance & Fintech  
**Repository:** https://github.com/fyllepo/qubic-mcp  
**GitHub Stars:** 3  
**npm Downloads (last month):** 330  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/qubic-mcp

## Description
MCP server for Qubic — balances, prices, transfers, wallets, and more.

## Tools
Capabilities this server exposes over MCP:

- **get_balance** — Get the current balance of a Qubic address or saved wallet. Accepts a 60-character Qubic address OR a saved wallet name (e.g., "my-main"). Use save_wallet to save addresses for quick access.
- **get_tick_info** — Get the current Qubic network tick information. Returns the current tick number, epoch, and tick duration. Qubic processes transactions in ticks (~5 seconds each) organized into epochs (~1 week each).
- **get_network_status** — Get comprehensive Qubic network status including current tick, epoch progress, circulating supply, burned QUs, active addresses, price, and market cap.
- **get_transaction** — Look up a Qubic transaction by its transaction ID. Returns source, destination, amount, tick, and execution status. Transaction IDs are 60 lowercase letters.
- **get_token_price** — Get the current QUBIC token price compared across multiple sources (CoinGecko, Qubic Official API, CryptoCompare). Shows price, 24h change, market cap, and volume with source-by-source comparison.
- **get_transfer_history** — Get the transfer history for a Qubic address or saved wallet within a tick range. Returns incoming and outgoing transfers with details. Use get_tick_info first to find the current tick number.
- **get_mining_phase** — Get the current Qubic mining phase (MINING or IDLE) and whether it's an XMR marathon day. The network alternates between mining and idle phases every ~1,353 ticks, and between Qubic AI solution days and XMR mining days every 24 hours.
- **get_rich_list** — Get the Qubic rich list — top addresses ranked by balance for the current epoch. Supports pagination.
- **convert_qu_usd** — Convert between QU (Qubic Units) and USD using the current live price. Specify either a QU amount to get USD value, or a USD amount to get the equivalent in QU.
- **validate_address** — Validate a Qubic address format and check if it exists on-chain with balance or transfer activity.
- **get_explorer_links** — Get links to Qubic block explorers for an address or transaction ID. Accepts saved wallet names.
- **get_token_list** — Get a list of all registered Qubic tokens with their name, issuer address, and website. Useful for finding token issuers needed for QX orderbook queries.
- **get_qx_orderbook** — Query the QX decentralized exchange orderbook for a Qubic token. Returns current ask (sell) and bid (buy) orders with price and quantity.

IMPORTANT: You MUST call get_token_list first to find the exact issuer address. NEVER guess or fabricate an issuer address. If the token is not in the registry, tell the user it was not found and ask them to provide the issuer address.
- **save_wallet** — Save a Qubic wallet address with a friendly name for quick access. Only saves the public address — never stores seeds or private keys. Stored locally in ~/.qubic-mcp/wallets.json.
- **list_wallets** — List all saved Qubic wallet addresses. These are public addresses only — no private keys are ever stored.
- **remove_wallet** — Remove a saved wallet by name. This only removes the local reference — it does not affect the actual blockchain address in any way.
- **add_network** — Save a custom Qubic network (e.g., a local lite node). Stored in ~/.qubic-mcp/networks.json. Use switch_network to activate it.
- **switch_network** — Switch the active Qubic network. All subsequent tool calls will use the new endpoint. Built-in networks: "mainnet", "testnet". Use add_network to save custom networks.
- **list_networks** — List all available Qubic networks (built-in and custom) and show which is currently active.
- **remove_network** — Remove a saved custom network. Cannot remove built-in networks (mainnet, testnet). If the removed network was active, switches back to mainnet.
- **query_smart_contract** — Query a Qubic smart contract (read-only). Returns the contract's response data as base64-encoded bytes.

Known contracts:
  1: QX (Decentralized Exchange)
  2: Quottery (Betting & Oracles)
  3: Random (Random Number Generation)
  4: QUTIL (Utility Functions)
  5: MLM (My Last Match - Gaming)

This is a low-level query tool. Use inputType to specify which contract function to call, and inputHex for the function parameters (hex-encoded bytes). If unsure about parameters, start with inputType=0 and empty input to get contract info.
- **register_contract** — Register a custom smart contract definition for use with query_contract.

Provide the contract's on-chain index and a JSON array of function definitions describing the binary input/output layout. Once registered, you can query the contract by name with automatic encoding and decoding.

Supported field types: uint8, uint16, uint32, uint64, int8, int16, int32, int64, identity (32-byte pubkey ↔ 60-char address), padding (skipped bytes).

Fields support "count" for arrays (e.g., 8 recipients) and "enum" for value→label mapping.

Example functions JSON:
[{
  "name": "getGateCount",
  "inputType": 6,
  "input": [],
  "output": [
    { "name": "totalGates", "type": "uint64" },
    { "name": "activeGates", "type": "uint64" }
  ]
}]
- **list_contracts** — List all registered custom smart contract definitions with their functions and field schemas.
- **remove_contract** — Remove a registered smart contract definition by name.
- **query_contract** — Query a registered smart contract function with automatic binary encoding/decoding.

Use register_contract first to define the contract's functions and their field schemas. Then call this tool by contract name and function name.

Input values are provided as a JSON object with field names as keys. For example: {"gateId": 1}

The response is automatically decoded into human-readable named fields.
- **get_epoch_computors** — List the computor identities for a given epoch. Computors are the 676 nodes that validate transactions on the Qubic network. Defaults to the current epoch if none is specified.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "qubic-mcp": {
    "command": "npx",
    "args": ["-y","mcp-server-qubic"],
    "env": {
      "QUBIC_RPC_URL": ""
    }
  }
}
```

**Requires environment variables:** `QUBIC_RPC_URL` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What the qubic-mcp MCP server does

The qubic-mcp MCP server exposes Qubic blockchain operations to MCP-compatible AI clients. It can retrieve balances and transfer history for Qubic addresses, look up transactions, report network and mining status, list epoch computors, rank top holders, and generate links to the official block explorer.

Market features include live QUBIC price comparisons from CoinGecko, the Qubic API, and CryptoCompare; conversion between QU and USD; a registry of Qubic tokens; and QX decentralized-exchange orderbooks with bid and ask data.

Local management tools save wallet addresses under names, validate addresses, and maintain named network configurations. The server also includes MCP resources containing Qubic reference material and prompts for portfolio analysis, market overviews, and research workflows.

## How it works

The qubic-mcp MCP server is started as an MCP process, normally through the `mcp-server-qubic` npm package and `npx`. An MCP client sends natural-language requests to the server, which calls Qubic RPC endpoints and returns structured results to the assistant. HTTP transport is available when the server needs to run as a standalone remote service.

Network selection is handled at runtime. Mainnet and testnet are built in, while custom endpoints can be saved and selected through the network tools. The active configuration persists in `~/.qubic-mcp/networks.json`. An RPC URL supplied through configuration can override the active saved network.

Smart-contract queries use registered profiles. A profile describes the contract index, function names, and input and output fields. The server converts supported values to the binary format expected by Qubic, sends the query, and decodes the response into named fields. Supported field types include signed and unsigned integers, Qubic identities, padding, arrays, and enum mappings. Raw queries with base64 input and output are also available for lower-level use.

## Setup and configuration

Install the package globally with `npm install -g mcp-server-qubic`, or clone the repository, install dependencies, and run its build command. A standard stdio configuration starts it with `npx mcp-server-qubic`.

The server does not require environment variables for ordinary network selection. Add, list, and switch networks through its tools. Saved contract profiles are stored in `~/.qubic-mcp/contracts.json`, and saved wallets are managed locally. For advanced or CI setups, `QUBIC_RPC_URL` overrides the endpoint obtained from the active network.

## Tools and capabilities

- Query balances, transfer history, and transaction details.
- Inspect ticks, epochs, supply, burned QUs, active addresses, market cap, and mining phase.
- Retrieve epoch computors and rich-list rankings.
- Compare QUBIC prices, convert QU and USD, and inspect registered tokens.
- Read QX orderbooks for token markets.
- Save wallets, validate addresses, and switch between network endpoints.
- Register, query, list, and remove smart-contract profiles.
- Run raw smart-contract queries when automatic field encoding is not appropriate.

## Limitations and notes

The server operates on the selected Qubic network, so results depend on the active endpoint and its available data. Smart-contract convenience queries require a registered interface definition that matches the contract’s RPC schema. Raw smart-contract operations require base64-encoded input and return base64-encoded output.

Network and contract files are stored under the user’s home directory, so deployments should account for that local state.

_Full upstream README: https://allmcps.com/mcp/qubic-mcp/readme_

