
X402 MCP Server
by codespario.github.codespar/mcp-x402v0.1.5
DEPRECATED: no live endpoint (api.x402.org does not resolve)
context tax
pending
security
100/100
cold start
pending
freshness
Active49d ago
Our reading of X402, from the data
X402 is an MCP server from codespar, listed in the official MCP Registry.
We haven't measured its tool list yet, so its token cost is unknown.
Maintenance is active: the last public signal was 2 months ago (2026-09-27).
It runs locally on your machine over stdio and needs one secret (X402_API_KEY); use a scoped, least-privilege key.
Install X402 MCP server
Install in Claude Code
claude mcp add x402-codespar -e X402_API_KEY='<x402-api-key>' -- npx -y @codespar/mcp-x402Install in Cursor
{
"mcpServers": {
"x402-codespar": {
"command": "npx",
"args": [
"-y",
"@codespar/mcp-x402"
],
"env": {
"X402_API_KEY": "<x402-api-key>"
}
}
}
}Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project).
Install in Claude Desktop
{
"mcpServers": {
"x402-codespar": {
"command": "npx",
"args": [
"-y",
"@codespar/mcp-x402"
],
"env": {
"X402_API_KEY": "<x402-api-key>"
}
}
}
}Settings → Developer → Edit Config (claude_desktop_config.json), then restart.
Install in VS Code
{
"servers": {
"x402-codespar": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@codespar/mcp-x402"
],
"env": {
"X402_API_KEY": "<x402-api-key>"
}
}
}
}Add to .vscode/mcp.json in your workspace.
Install in Windsurf
{
"mcpServers": {
"x402-codespar": {
"command": "npx",
"args": [
"-y",
"@codespar/mcp-x402"
],
"env": {
"X402_API_KEY": "<x402-api-key>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json.
Try it in a sandbox first: this installs it with scripts off and starts it with no network, then lists its tools and token cost. How it works
npx mcpskillhub test @codespar/mcp-x402 --env X402_API_KEY
Configuration
| Variable | Required | Secret | Description |
|---|---|---|---|
| X402_API_KEY | yes | yes | API key for x402 |
Security signals
100/100 — no known issues found as of 2026-10-19, from the checks below. This is not a guarantee of safety; review what a server can do before connecting it.
Deductions
No findings from the checks that ran.
Checks
- ✓Repository hygiene (archived, activity, license, security policy)
- ○Package metadata (install scripts, provenance) — pending
- ○Tool descriptions (prompt-injection and hidden-text heuristics) — pending
- ○Source scan (secrets, CVEs, risky code) by vectra-guard — pending
Scan it yourself before installing with vectra-guard, the open-source agent security CLI (made by NavyaAI, which also runs MCPSkillHub). Scoring rules
Freshness
Active — last maintenance signal 49d ago. The newest of the signals below sets the band.
Last commit (default branch)
2026-09-27 · 49d ago · GitHub
Latest release
no data · GitHub
Package published
no data · npm/PyPI
Registry entry updated
2026-09-27 · 49d ago · official registry · v0.1.5
FAQ
›How do I install the X402 MCP server in Claude Code?
Run: claude mcp add x402-codespar -e X402_API_KEY='<x402-api-key>' -- npx -y @codespar/mcp-x402. For Cursor, VS Code, Claude Desktop and Windsurf, use the install tabs above.
›Does X402 require an API key?
Yes. It expects X402_API_KEY, of which 1 is a secret.
›Can I use X402 as a remote (hosted) MCP server?
No hosted endpoint is published; it runs locally over stdio.
›Is X402 in the official MCP registry?
Yes, as io.github.codespar/mcp-x402.
Sources and method
- Official MCP Registry entry
- updated 2026-09-27
- GitHub repository
- fetched 2026-10-19
- Package registry (npm / PyPI)
- listed
- Security signals, computed by us
- 2026-10-19
- Last checked against all sources
- 2026-10-19
The description, packages and links come from the maintainer's own published metadata. Token cost, security signals, freshness and the reading above are MCPSkillHub's own measurements; see the methodology. Editorial standards are owned by Ramachandra Vikas Chamarthi, Founder & AI HPC Architect. Spot an error? Request a correction or claim the listing.