Skip to main content

authority-risk-mcp

A read-only MCP server that tells an AI agent who can change a smart contract, how fast, and how strong the setup is, before the agent depends on it. It reads the files that the Authority Risk Oracle Watch publishes every six hours, and checks them against the Watch's signed manifest before it answers.

No account, no key, no wallet, no transaction. The scores are published on testnet oracles for contracts of the networks named in each answer. A score is a reading of public data taken at the time shown: not an audit and not investment advice.

Install

With uvx (Python 3.9 or newer, nothing else):

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

With npx (needs Node 18 or newer and python3 3.9 or newer on the PATH; the npm package is a thin launcher around the same Python server):

{ "mcpServers": { "authority-risk": { "command": "npx", "args": ["-y", "authority-risk-mcp"] } } }

Put the block in claude_desktop_config.json (Claude Desktop) or .cursor/mcp.json (Cursor), then restart the client. With pip: pip install authority-risk-mcp, then authority-risk-mcp.

The four tools

Tool Ask it Returns
getScore "What is the authority score of 0x1f7d... on Robinhood Chain?" composite and five sub-scores, stale or not, when it was pushed and read, the oracle and block, and a cast call to replay the reading
listTargets "Which tracked contracts score under 40?" the matching contracts, weakest first, and how many had no score read
whoControls "Who can change this contract, and how fast?" admin kind (EOA, Safe, timelock...), threshold, keys needed to act, delay, modules, pending admin change
checkProtocol "Is aave-v3 above 60 on every chain it is on?" weakest contract, how many were read, stale or alerting ones, and a verdict: ok, fail, unread_part, unread

Every answer is JSON with a status:

  • ok: the answer is read.
  • not_tracked: the Watch does not track this contract. That says nothing about its safety.
  • not_read: a file the answer needs is missing, could not be fetched, or did not match its signature (integrity_failed: true).

A value the Watch did not read is null and listed in not_read. It is never 0 and never "ok". unread_part means some contracts of a protocol were read and others were not: that is not a pass.

Example call (what a client sends):

{"jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": {"name": "getScore", "arguments": {"chain": "robinhood", "address": "0x1f7d7550B1b028f7571E69A784071F0205FD2EfA"}}}

Chains: robinhood, ethereum-l1, arbitrum, base, tempo, plasma, monad, hyperliquid, solana.

What is checked

The Watch signs a manifest (the sha256 of every published file and the head of its hash-chained event log) with an Ed25519 key. This server:

  1. fetches signature.json and verifies the signature with a key it has pinned (11baca3e...f409); an unknown key, an unsigned manifest or a bad signature is refused;
  2. fetches each file it needs and compares its sha256 with the manifest; if the first source (raw.githubusercontent.com) serves a different copy, it tries the second (jsDelivr); a mismatch everywhere is refused;
  3. compares the head of the event log with the manifest when it can.

Each answer carries an integrity block: whether it verified, which key signed, how old the snapshot is (snapshot_stale after 72 hours), and the event-log check. A file that does not match is never a value.

What this does not prove: the Watch's workflow holds the signing key, so a malicious change to the workflow itself could sign anything (that change would be visible in the repository history). The pinned key protects against a different server, a compromised mirror or a tampered download, not against the maintainer.

Options

authority-risk-mcp [--data-dir DIR] [--base-url URL] [--trust-key HEX] [--allow-unsigned] [--allow-unpinned] [--max-age-hours N]
  • --data-dir DIR: read a local clone of the watch-data branch, offline (git clone --depth 1 -b watch-data https://github.com/RealSpap/authority-risk-oracle-showcase.git). The folder is checked against its own signature.json when it has one; without it the answers say verified: false. Nothing touches the network in this mode.
  • --trust-key HEX (or AUTHORITY_RISK_TRUSTED_KEYS, comma separated): accept a manifest signed by another key, for a rotation announced in the repository.
  • Network mode contacts only raw.githubusercontent.com and cdn.jsdelivr.net (or the https --base-url you give) and writes verified files to a private temporary folder that is removed when the server stops.

Licence

MIT. Source: packages/authority-risk-mcp in the repository. The tool modules are copied byte for byte from the repository's scripts/ folder at build time.

Metadata

Release files for authority-risk-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 authority-risk-mcp 0.1.0
File Size Uploaded
authority_risk_mcp-0.1.0.tar.gz 45.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for authority-risk-mcp 0.1.0
File Interpreter ABI Platform
authority_risk_mcp-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 89.3 kB

Release files / authority_risk_mcp-0.1.0.tar.gz

Download URL authority_risk_mcp-0.1.0.tar.gz
Size 45.4 kB
Tags Source
SHA-256 checksum
How to use checksums
229640fe2acf172eb04485e5b551c4badbdf16e9c4bc39a9e5ec724527e9095e
BLAKE2b-256 checksum
How to use checksums
7bf78fea4b30f3860bf7ee763a4047f9d13cd38bfa8e5980cedadeedfdd5184e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 14, 2026.

Transparency log

Release files / authority_risk_mcp-0.1.0-py3-none-any.whl

Download URL authority_risk_mcp-0.1.0-py3-none-any.whl
Size 43.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1c9ffbf42a2124343c97c3cfc93fb82a099ff0bb247aa7918cf2620c660eeb61
BLAKE2b-256 checksum
How to use checksums
00f75bbb7c120ed124e6a667418f369a117420644b2c8120be4887fec1deabcf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 14, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

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