npm @402index/mcp-serverstdioMITupdated 1mo ago
Protocol-agnostic directory of paid APIs for AI agents.
What can you do with 402index?
402 Index
Protocol-agnostic directory of paid APIs for AI agents.
What it is: a registry of HTTP 402βpriced APIs across every major machine-payment protocol β L402 (Lightning), x402 (stablecoins), and MPP (Stripe/Tempo) β surfaced to AI agents via HTTP, RSS, Nostr, and MCP.
Who it's for: AI-agent developers looking for services to call, and API providers looking to get discovered by agents. The directory is community-owned: open source, MIT-licensed, no captive protocol.
Where it lives: 402index.io (production) Β· @402index (digest) Β· GitHub Issues (roadmap).
Quickstart
For agents (MCP)
One command adds 402 Index discovery + payment to any MCP host (Claude Desktop, Cursor, Cline, Windsurf):
npm install -g @402index/mcp-server
Then register it with your MCP host β see mcp-server/README.md for per-client instructions.
For agents (HTTP)
# Semantic search
curl "https://402index.io/api/v1/services?q=weather&verified=true&limit=10"
# Filter by protocol
curl "https://402index.io/api/v1/services?protocol=L402&health=healthy"
Full API reference at 402index.io/api-docs.
For API providers
Register your endpoint so agents can find it:
- Self-serve:
POST https://402index.io/api/v1/registerwith your endpoint URL. The probe validates the 402 challenge, detects L402 and/or x402 support, and lists automatically. - Pull request: add a YAML file under
listings/β see CONTRIBUTING.md. - Already on Bazaar, Satring, or l402apps? You're already indexed β no action needed.
For contributors
git clone https://github.com/ryanthegentry/402index.git
cd 402index
npm install
npm test # Run tests (node:test)
npm run dev # Start dev server (nodemon)
npm run poll # Pull from Bazaar + Satring manually
npm run healthcheck # Run health checks manually
What's in the registry
Tens of thousands of endpoints across hundreds of verified providers, aggregated from the x402 Bazaar, Satring, l402apps.com, MPP's OpenAPI directory, and direct self-submissions β no gatekeeping by protocol.
Live numbers at 402index.io/api/v1/health.
Architecture
- Node.js + Express, SQLite via
better-sqlite3, static HTML via template literals (no framework). - Aggregators (
src/aggregators/) poll Bazaar / Satring / l402apps on a schedule and upsert normalized listings. - Health checker (
src/health/checker.js) probes listings on a configurable interval, defaulting to 60 minutes (HEALTH_CHECK_INTERVAL_MS), with SSRF-safe fetch, records status, emits events. - Semantic search via
sqlite-vec+ hybrid LIKE/vector re-rank, with circuit-breaker fallback to LIKE-only when the embeddings service is down. - Distribution: HTTP API, MCP server, RSS, Nostr (NIP-99), webhooks (HMAC-SHA256).
- Verifier handles BOLT11 invoices (L402) and ERC-20 stablecoin challenges (x402), including x402-over-Lightning.
Deeper notes in CLAUDE.md and docs/.
Project layout
402index/
βββ src/ # Application code (routes, aggregators, services, views)
βββ mcp-server/ # @402index/mcp-server (published to npm)
βββ listings/ # YAML listings for manually curated / exclusive providers
βββ test/ # Tests (node:test)
βββ scripts/ # Ops scripts (poll, healthcheck, backfills)
βββ docs/ # Specs, API docs, protocol notes
βββ .github/workflows/ # CI
Contributing
PRs welcome for listings, code, and docs. See CONTRIBUTING.md for the fork-branch-PR flow and CLAUDE.md for code style and the bug-fix protocol (failing-test-first).
Roadmap is the open issues list. Good starter tasks have the good-first-issue label.
Security
Please do not open a public issue for suspected vulnerabilities. See SECURITY.md for responsible-disclosure contacts and the threat model summary.
License
MIT. Use it, fork it, ship it.
Built by @ryanthegentry and the community. Questions β hello@402index.io or GitHub Discussions.
Install
Add 402index to your client. Pick the one you use.
claude mcp add mcp-server -- npx -y @402index/mcp-servercodex mcp add mcp-server -- npx -y @402index/mcp-serveramp mcp add mcp-server -- npx -y @402index/mcp-server{
"mcpServers": {
"mcp-server": {
"command": "npx",
"args": [
"-y",
"@402index/mcp-server"
]
}
}
}Add to `claude_desktop_config.json`, then restart Claude Desktop.
{
"mcpServers": {
"mcp-server": {
"command": "npx",
"args": [
"-y",
"@402index/mcp-server"
]
}
}
}Add to `~/.cursor/mcp.json`, or `.cursor/mcp.json` for a single project.
code --add-mcp '{"name":"mcp-server","command":"npx","args":["-y","@402index/mcp-server"]}'Or add the block manually to `.vscode/mcp.json` under `servers`.
{
"mcpServers": {
"mcp-server": {
"command": "npx",
"args": [
"-y",
"@402index/mcp-server"
]
}
}
}Add to `~/.codeium/windsurf/mcp_config.json`.
{
"mcpServers": {
"mcp-server": {
"command": "npx",
"args": [
"-y",
"@402index/mcp-server"
]
}
}
}Add to `cline_mcp_settings.json` via the MCP Servers panel.
{
"mcpServers": {
"mcp-server": {
"command": "npx",
"args": [
"-y",
"@402index/mcp-server"
]
}
}
}Add to `~/.gemini/settings.json`.
{
"mcpServers": {
"mcp-server": {
"type": "local",
"command": "npx",
"args": [
"-y",
"@402index/mcp-server"
],
"tools": [
"*"
]
}
}
}Add to `~/.copilot/mcp-config.json`, or run `/mcp add` inside the CLI.
{
"context_servers": {
"mcp-server": {
"command": {
"path": "npx",
"args": [
"-y",
"@402index/mcp-server"
]
}
}
}
}Add to your Zed `settings.json`.
npx -y @402index/mcp-serverRun `goose configure`, choose **Add Extension β Command-line Extension**, and paste this command.
Score
39 / 100
Incomplete
- Documentation25/25
- Maintenance25/25
- Trust13/20
- Capability0/15
- Install experience12/15
- Documents what it does and how to connect
- Has a resolvable package or endpoint
- Exposes at least one tool, prompt or resource
- README has substantive content
- Includes a code example
- Documents its configuration
- Mentions credentials or security posture
- Last commit 23 days ago
- Has a release history
- Repository is not archived
- Licensed MIT
- Namespace verified in the official MCP registry
- Claimed by its owner
- Published under an organisation
- 0 tool(s) documented
- Provides prompt templates
- Provides resources
- 12 documented install method(s)
- Published to a package registry
- Offers a hosted endpoint β no local install
Version history
| Versions | Published |
|---|---|
| 0.3.0Latest | Apr 23, 2026 |
| 0.2.5 | Mar 24, 2026 |
| 0.1.2 | Mar 20, 2026 |