X402 Trust MCP Server
by jonasfuchssio.github.JonasFuchss/x402-trust-mcpv1.15.0
Trust & reliability data for x402 endpoints before your agent pays them.
context tax
queued
security
queued
cold start
queued
freshness
Active4d ago
Install X402 Trust MCP server
Install in Claude Code
claude mcp add x402-trust -e X402_PRIVATE_KEY='<x402-private-key>' -- npx -y x402-trust-mcpInstall in Cursor
{
"mcpServers": {
"x402-trust": {
"command": "npx",
"args": [
"-y",
"x402-trust-mcp"
],
"env": {
"X402_PRIVATE_KEY": "<x402-private-key>"
}
}
}
}Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project).
Install in Claude Desktop
{
"mcpServers": {
"x402-trust": {
"command": "npx",
"args": [
"-y",
"x402-trust-mcp"
],
"env": {
"X402_PRIVATE_KEY": "<x402-private-key>"
}
}
}
}Settings → Developer → Edit Config (claude_desktop_config.json), then restart.
Install in VS Code
{
"servers": {
"x402-trust": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"x402-trust-mcp"
],
"env": {
"X402_PRIVATE_KEY": "<x402-private-key>"
}
}
}
}Add to .vscode/mcp.json in your workspace.
Install in Windsurf
{
"mcpServers": {
"x402-trust": {
"command": "npx",
"args": [
"-y",
"x402-trust-mcp"
],
"env": {
"X402_PRIVATE_KEY": "<x402-private-key>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json.
Configuration
| Variable | Required | Secret | Description |
|---|---|---|---|
| X402_PRIVATE_KEY | — | yes | Optional Base wallet private key (with or without the 0x prefix). When set, the paid tools auto-pay over x402 up to X402_MAX_USD; otherwise they return a price quote. The free tools need no key. |
| X402_MAX_USD | — | — | Per-call auto-pay ceiling in USD. 0 disables auto-pay. |
| X402_MAX_TOTAL_USD | — | — | Cumulative auto-pay cap per process in USD. 0 = unlimited. |
| X402_MAX_CALLS | — | — | Max paid calls per process. 0 = unlimited. |
| X402_TRUST_API_BASE | — | — | API base URL. |
| X402_TIMEOUT_MS | — | — | Request timeout in milliseconds. |
Freshness
Active — last maintenance signal 4d ago. The newest of the signals below sets the band.
Last commit (default branch)
2026-10-05 · 4d ago · GitHub
Latest release
2026-10-05 · 4d ago · GitHub · v1.15.0
Package published
no data · npm/PyPI
Registry entry updated
2026-10-05 · 4d ago · official registry · v1.15.0
FAQ
›How do I install the X402 Trust MCP server in Claude Code?
Run: claude mcp add x402-trust -e X402_PRIVATE_KEY='<x402-private-key>' -- npx -y x402-trust-mcp. For Cursor, VS Code, Claude Desktop and Windsurf, use the install tabs above.
›Does X402 Trust require an API key?
Yes. It expects X402_PRIVATE_KEY, of which 1 is a secret.
›Can I use X402 Trust as a remote (hosted) MCP server?
No hosted endpoint is published; it runs locally over stdio.
›Is X402 Trust in the official MCP registry?
Yes, as io.github.JonasFuchss/x402-trust-mcp.