Skip to main content

qorechain-mcp (Python)

MCP server with read access to QoreChain: blocks, transactions, accounts, validators, staking tiers, the status of the hybrid secp256k1 + ML-DSA-87 (FIPS 204) signature, EVM contract reads, simulation and fee estimates, and unsigned transfers for the user's own wallet to sign. It never signs, never holds keys and never broadcasts.

This is the Python distribution of the same server as the npm package @qorechain/mcp: same tool names, input and output schemas, outputs and error codes. Both are tested against the same recorded chain answers.

uvx qorechain-mcp                      # stdio
uvx qorechain-mcp --network mainnet    # mainnet for calls that name no network

MCP client configuration:

{ "mcpServers": { "qorechain": { "command": "uvx", "args": ["qorechain-mcp"] } } }

Requires Python 3.10 or later. The Python package serves stdio; for Streamable HTTP with API keys and rate limits, use npx -y @qorechain/mcp serve or the container image ghcr.io/qorechain/qorechain-mcp.

Tools

get_chain_info, get_block, get_transaction, get_address_info, get_pq_status, get_validators, get_staking_tiers, search, read_contract (eth_call only), estimate_fee, simulate_tx, prepare_transfer (unsigned), and get_token_holders and request_faucet, which answer NOT_AVAILABLE_ON_CHAIN. Every tool takes an optional network: testnet (default) or mainnet. Full reference: https://github.com/qorechain/qorechain-mcp/blob/main/docs/tools.md.

Errors are tool results with isError: true and a JSON body {"error": {"code", "message", "details?"}}, with the codes NOT_FOUND, INVALID_INPUT, UPSTREAM_UNAVAILABLE, NOT_AVAILABLE_ON_CHAIN, RATE_LIMITED, UNAUTHORIZED, INTERNAL_ERROR. Input that looks like a recovery phrase or private key is refused.

Library use

import anyio
from qorechain_mcp import Context, run_tool

async def main():
    out = await run_tool("get_chain_info", {"network": "mainnet"}, Context())
    print(out["latest_block"])

anyio.run(main)

Dependencies

Package License
mcp 2.3.0 (official MCP Python SDK) and its dependencies MIT, with BSD and Apache-2.0 dependencies
dilithium-py 1.4.0 (ML-DSA-87 verification, pure Python) MIT

keccak-256, RIPEMD-160, bech32 and the protobuf subset are implemented in the package. The BIP-39 English word list (used only to refuse recovery phrases) comes from the BIP-39 specification.

Development

pip install -e ".[dev]"
pytest              # golden outputs shared with the TypeScript server
ruff check src tests
python -m build && twine check --strict dist/*

src/qorechain_mcp/tools.json is generated from the TypeScript server (node scripts/gen-tools-spec.mjs in the repository root); do not edit it by hand.

Apache-2.0. Copyright 2026 QoreChain Association.

Metadata

Release files for qorechain-mcp 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for qorechain-mcp 0.1.1
File Size Uploaded Provenance Actions
qorechain_mcp-0.1.1.tar.gz 52.9 kB Without provenance Details for qorechain_mcp-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for qorechain-mcp 0.1.1
File Interpreter ABI Platform Actions
qorechain_mcp-0.1.1-py3-none-any.whl Python 3 none any Details for qorechain_mcp-0.1.1-py3-none-any.whl

Total release size: 114.9 kB

Release files / qorechain_mcp-0.1.1.tar.gz

Download URL qorechain_mcp-0.1.1.tar.gz
Size 52.9 kB
Tags Source
SHA-256 checksum
How to use checksums
10dece8f5c28ef91fba831ccc72363b033e0a7cd76fc62ef4076e4a986a4266f
BLAKE2b-256 checksum
How to use checksums
7d302d885693697196a0206cb2b7ba51a62031ba1a9e5d111783030fdf747c05
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.7

Release files / qorechain_mcp-0.1.1-py3-none-any.whl

Download URL qorechain_mcp-0.1.1-py3-none-any.whl
Size 62.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b77b05fc1f409cba51b96cbf69447d714652d3cbe462d7b2d0e1a3f81f48edc1
BLAKE2b-256 checksum
How to use checksums
8959033fa61409693cdbc74791b99b1c98430ae6005982820a67734167c4ac4f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.7

Security for qorechain-mcp 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page