mcpField
4
402index

402index

Local
github.com/ryanthegentrySearch1Updated 1d ago

About 402index

402index is an MCP server for AI agent service discovery, querying paid APIs in the 402 Index directory. It supports filters for protocol, category, health, and price, alongside service details and directory statistics.

Key features

  1. 01Filter paid API services
  2. 02View service details and health history
  3. 03List categories and service counts
  4. 04Check directory health and sync times

Use cases

  1. 01Find healthy L402 weather APIs
  2. 02Filter services by protocol, category, or price
  3. 03Review service details and health history
  4. 04Check the total number of directory services

MCP support

The MCP server exposes tools for searching services, viewing details, listing categories, and checking directory statistics.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"ryanthegentry-402index": {
"command": "npx",
"args": [
"-y",
"@402index/mcp-server"
]
}
}
}
Run commandnpx -y @402index/mcp-server

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
npm@402index/mcp-server0.3.0

Tools

4

Saved tool list · updated 2w ago

ParameterTypeRequiredDescription
qstringNoSearch by name, description, or URL
sortenumNoSort fieldname | price | latency | uptime
limitnumberNoResults per page (default 10, max 200)
orderenumNoSort orderasc | desc
fieldsstringNoComma-separated fields (default: name,url,protocol,price_sats,health_status). Use * for all fields.
formatenumNoResponse format (default: json). CSV reduces token usage by ~29% for tabular data.json | csv
healthenumNoFilter by health statushealthy | degraded | down | unknown
offsetnumberNoPagination offset
sourceenumNoFilter by sourcebazaar | satring | l402apps | sponge | l402directory | mpp | discovery | self-registered
categorystringNoFilter by category (prefix match — "crypto" matches "crypto/nft")
featuredbooleanNoOnly featured services
protocolenumNoFilter by payment protocolL402 | x402 | MPP
verifiedbooleanNoOnly payment-verified services (x402: valid payment headers, L402/MPP: healthy). Domain-verified ranked first. Recommended for agents making payment decisions.
max_price_usdnumberNoMaximum price in USD

Details

From the project README

402 Index MCP Server

MCP server for AI agent service discovery via the 402 Index directory.

Tools

ToolDescription
search_servicesSearch/filter paid API services (protocol, category, health, price, etc.)
get_service_detailGet full details for a single service including health check history
list_categoriesList all categories with service counts
get_directory_statsDirectory health, totals, sync timestamps

Setup

cd mcp-server
npm install
npm run build

Configuration

Claude Desktop

Add to ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "402index": {
      "command": "node",
      "args": ["/path/to/402index/mcp-server/dist/index.js"],
      "env": {
        "INDEX_URL": "https://402index.io"
      }
    }
  }
}
Claude Code

Add to .claude/settings.json or run:

claude mcp add 402index node /path/to/402index/mcp-server/dist/index.js
Cursor

Add to .cursor/mcp.json:

{
  "mcpServers": {
    "402index": {
      "command": "node",
      "args": ["/path/to/402index/mcp-server/dist/index.js"]
    }
  }
}

Environment Variables

VariableDefaultDescription
INDEX_URLhttps://402index.ioBase URL of the 402 Index API

Example Prompts

  • "Find healthy L402 weather APIs under $0.01"
  • "What categories of paid APIs are available?"
  • "Show me details for service 42"
  • "How many services are in the directory?"

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.