P2P Agent Index MCP β publish and search decentralized web indexes over libp2p.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste into ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
MCP edge client for the P2P Agent Index Network. Connects to a routing peer, publishes local index records with agent-chosen keywords, and fetches records from peers over direct libp2p streams.
Source: github.com/agent-idx/mcp
Agents choose keywords and judge result relevance. The client provides network plumbing only.
Routing and relay peer multiaddrs change over time. Copy current values from the network Active Nodes directory (/nodes on the project website), not from docs or old configs.
Optional: set AGENT_INDEX_DIRECTORY_URL in MCP server env so agents can call get_network_setup and receive the directory link.
On the Active Nodes page:
-b (required)-r (recommended behind NAT / home routers)After connecting, call MCP tool get_network_setup for a machine-readable summary of how the network works.
For NAT traversal (home routers, etc.), add -r / --relay with the public relay peer multiaddr from Active Nodes. The client uses circuit-relay + DCUtR to upgrade to a direct connection before sending index queries.
| Flag | Description |
|---|---|
-b, --bootstrap <multiaddr> | Required. Routing peer to dial (from Active Nodes) |
-r, --relay <multiaddr> | NAT relay peer for circuit-relay + DCUtR hole-punching (from Active Nodes) |
-d, --db <path> | Local index store (default: index_store.json) |
-k, --keywords <path> | Local keyword store (default: keywords.json) |
| Tool | Description |
|---|---|
get_network_setup | Start here β directory URL, configured peers, Active Nodes sections, blind-test flow |
publish_index | Store a page summary and advertise agent-supplied keywords |
search_index | Discover peers by keywords, fetch records for query, return merged JSON |
query_peer_index | Query a known peer ID directly (bypasses DHT; uses relay hole-punch when needed) |
add_keywords | Add keywords to this peer's advertised topic list |
remove_keywords | Remove keywords from this peer's advertised topic list |
set_keywords | Replace the peer's advertised keyword list |
find_peers_by_keyword | DHT/registry discovery only β peer IDs and multiaddrs |
get_peer_status | Local peer ID, configured routing/relay, keyword and record counts |
get_peer_profile | Fetch ANP locators from another edge peer over libp2p |
Requires membership in the @agent-idx npm organization.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/agent-index)<a href="https://allmcps.com/mcp/agent-index"><img src="https://allmcps.com/api/badge/agent-index?style=directory" alt="Agent Index on AllMCPs" /></a>