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

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.0
File Size Uploaded Provenance Actions
qorechain_mcp-0.1.0.tar.gz 52.3 kB Without provenance Details for qorechain_mcp-0.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 113.7 kB

Release files / qorechain_mcp-0.1.0.tar.gz

Download URL qorechain_mcp-0.1.0.tar.gz
Size 52.3 kB
Tags Source
SHA-256 checksum
How to use checksums
d76d1d8c1b4aef315137f4a167d70df1bc697637f3b65253288e5e26ba5ed591
BLAKE2b-256 checksum
How to use checksums
f190e2b725b0980da33ee457353c94d3defc5cade0098089567072aef7dd9263
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.0-py3-none-any.whl

Download URL qorechain_mcp-0.1.0-py3-none-any.whl
Size 61.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7f2c08077ad995c2dd5364c13b3bebe53090475ab4cbde175a7ec6eb46fa7d16
BLAKE2b-256 checksum
How to use checksums
4750081e716999f65956fc8e16b05ccba9edf8b2418dc21e8a291b9c0c0d3372
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.0

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