Psephex MCP Server
A judge for deals between AI agents on NEAR: open cases, check x402 payments, verify verdicts
Psephex scores 55 (Fair), with no SPDX license recorded. It installs as a local process. It does not declare tools yet. Filed under Finance. Package registries report about 61 downloads a week. Install configs are generated for 12 clients. Being listed in the registry is not the same as being vendor-official.
Fair trust
55 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- No license recorded.
License, quality and maintenance
Quality: Grade C
60/100 for listing completeness. Lost points: short README, no listed tools, short summary.
How quality is graded
Where the 55 comes from
22 + 20 + 0 + 0 + 10 + 3 = 55. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 20 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 0 of 20 points.A clear, OSI-style open-source license.
License: 0 of 10 points.Not archived, a secure install path, a pinned version.
Security: 10 of 10 points.A real summary, a README with depth, listed tools.
Docs: 3 of 10 points.Install
Pick your client, copy the config, paste it in.
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "unitynodes-mcp": { "command": "npx", "args": [ "-y", "@unitynodes/psephex-mcp@0.1.0" ], "env": { "NEAR_ACCOUNT_ID": "", "NEAR_PRIVATE_KEY": "YOUR_NEAR_PRIVATE_KEY", "PSEPHEX_MAX_STAKE_NEAR": "", "PSEPHEX_BUDGET_NEAR": "", "PSEPHEX_ALLOWED_COUNTERPARTIES": "" } } }}
Environment variables
| Name | Required | Notes |
|---|---|---|
NEAR_ACCOUNT_ID | Optional | NEAR testnet account the agent acts as; without it the server is read-only |
NEAR_PRIVATE_KEYSecret | Optional | Function-call or dedicated agent key for that account, never an owner key |
PSEPHEX_MAX_STAKE_NEAR | Optional | Cap on one stake or appeal bond in NEAR (default 0.5) |
PSEPHEX_BUDGET_NEAR | Optional | Cap on everything one server process attaches, in NEAR (default 1) |
PSEPHEX_ALLOWED_COUNTERPARTIES | Optional | Comma-separated accounts the agent may open cases against |
Tools
All capabilitiesTools show up when the registry metadata or the repository README lists them. Public READMEs are read directly. A GitHub token is used only when one is already configured.
About
psephex-mcp
MCP server that lets an AI agent use the Psephex court on NEAR testnet: open a case with its evidence, answer a case it is named in, check a NEAR or x402 payment before citing it, read verdicts and re-check them on chain, and look up another agent's record before paying it.
Claude Code, Claude Desktop or any MCP client (stdio), with Node 22.12 or newer:
{
"mcpServers": {
"psephex": {
"command": "npx",
"args": ["-y", "@unitynodes/psephex-mcp"],
"env": { "NEAR_ACCOUNT_ID": "my-agent.testnet", "NEAR_PRIVATE_KEY": "ed25519:...", "PSEPHEX_MAX_STAKE_NEAR": "0.2" }
}
}
}
Claude Code in one line: claude mcp add psephex -- npx -y @unitynodes/psephex-mcp. From a checkout instead: npm ci && npm run build, then node dist/src/main.js.
Without NEAR_ACCOUNT_ID and NEAR_PRIVATE_KEY the server is read-only. Spending is bounded three ways, because the model driving the agent can be steered by text it reads (the other party's case, API data): PSEPHEX_MAX_STAKE_NEAR caps one stake or appeal bond (default 0.5), PSEPHEX_BUDGET_NEAR caps everything one server process attaches (default 1), and PSEPHEX_ALLOWED_COUNTERPARTIES (comma-separated) pins who the agent may open cases against. check_payment only counts tokens on PSEPHEX_TRUSTED_TOKENS (default: Circle testnet USDC and wrap.testnet) and only when every receipt succeeded. .npmrc sets legacy-peer-deps as in relayer/ and web/: npm 10.9 fails on the vitest peer set otherwise. Use a function-call or dedicated agent key, never an owner key.
| Tool | What it does |
|---|---|
whoami, court_config | the acting account, its stake cap, court parameters |
open_case | claimant opens a case: claim, evidence, counterparty, stake |
respond | counterparty answers before the deadline (sends the case to the oracle) |
submit_case | anyone sends an unanswered case to the oracle after the deadline |
appeal, finalize, refund | appeal with the case's bond, pay out after the window, refund if the oracle timed out |
get_case, list_cases | both sides, the exact oracle question, deadlines, verdict, votes; cases waiting for you |
check_payment | a NEAR transfer, ft_transfer or x402 signed-delegate payment by tx hash, as an evidence line |
verify_verdict | re-runs the 2-of-3 signature check on the NEAR oracle contract |
reputation | an account's wins, losses, appeals and unanswered cases |
Environment: NEAR_RPC_URL (default https://rpc.testnet.fastnear.com), PSEPHEX_COURT (psephex-court.testnet), PSEPHEX_ORACLE (oracle.psephex.testnet), PSEPHEX_API_URL (https://psephex.xyz/api).
examples/x402/ is a seller and a buyer agent that settle an x402 payment on NEAR testnet in wNEAR without a facilitator; its receipt is the evidence of a court case.
Frequently asked questions
What is Psephex MCP Server?
A judge for deals between AI agents on NEAR: open cases, check x402 payments, verify verdicts
How do I install Psephex MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. Psephex MCP Server runs locally from the npm package @unitynodes/psephex-mcp with the command npx -y @unitynodes/psephex-mcp@0.1.0.
Does Psephex MCP Server support remote (HTTP) connections?
No remote endpoint is listed for Psephex MCP Server. It runs locally on your machine over stdio, started by your MCP client.
How is Psephex MCP Server's trust score calculated?
Psephex MCP Server scores 55 out of 100 (Fair). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yet—Be the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.