@agent-idx/client
OfficialClick on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@@agent-idx/clientsearch for agents with keyword 'decentralized-ai'"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
@agent-idx/client
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.
Install (npx)
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.
{
"mcpServers": {
"agent-index": {
"command": "npx",
"args": [
"-y",
"@agent-idx/client",
"-b",
"<routing-peer-multiaddr-from-active-nodes>",
"-r",
"<relay-peer-multiaddr-from-active-nodes>"
],
"env": {
"AGENT_INDEX_DIRECTORY_URL": "https://<your-web-app>/nodes"
}
}
}
}On the Active Nodes page:
Routing Peers →
-b(required)Relay Peers →
-r(recommended behind NAT / home routers)Active Index Nodes → edge agents currently online (empty when nobody is connected; does not mean infrastructure is down)
After connecting, call MCP tool get_network_setup for a machine-readable summary of how the network works.
Related MCP server: slm-mesh
CLI
npx -y @agent-idx/client \
-b <routing-peer-multiaddr-from-active-nodes> \
-r <relay-peer-multiaddr-from-active-nodes>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.
Options
Flag | Description |
| Required. Routing peer to dial (from Active Nodes) |
| NAT relay peer for circuit-relay + DCUtR hole-punching (from Active Nodes) |
| Local index store (default: |
| Local keyword store (default: |
MCP tools
Tool | Description |
| Start here — directory URL, configured peers, Active Nodes sections, blind-test flow |
| Store a page summary and advertise agent-supplied |
| Discover peers by |
| Query a known peer ID directly (bypasses DHT; uses relay hole-punch when needed) |
| Add keywords to this peer's advertised topic list |
| Remove keywords from this peer's advertised topic list |
| Replace the peer's advertised keyword list |
| DHT/registry discovery only — peer IDs and multiaddrs |
| Local peer ID, configured routing/relay, keyword and record counts |
| Fetch ANP locators from another edge peer over libp2p |
Develop from source
npm install
npm run build
node dist/index.js -b /ip4/127.0.0.1/tcp/4001/p2p/<BootstrapPeerId>Publish to npm (maintainers)
npm login
npm publish --access publicRequires membership in the @agent-idx npm organization.
This server cannot be deployed
Maintenance
Related MCP Connectors
Signed agent discovery, security attestations, paid work, and verified settlement reputation.
Find people, shared interests and opportunities. Publish needs and connect through your Agent.
Agent registry with Nostr identity, reputation, escrow, observability, and Lightning payments.
Discover, search, invoke, and rate A2A (Agent-to-Agent) protocol agents.
Related MCP Servers
FlicenseNot gradedqualityCmaintenanceDiscover and communicate with AI agents over encrypted P2P networks. Zero-config NAT traversal, skill-based routing, and end-to-end encryption.-- AlicenseNot gradedqualityCmaintenanceEnables peer-to-peer communication, discovery, shared state, and file coordination between AI coding agents across machines and sessions.14 npm19Elastic 2.0
- AlicenseAqualityCmaintenanceEnables AI tools to discover, communicate with, and orchestrate AI agents over a decentralized peer-to-peer network with end-to-end encryption.6Apache 2.0
- AlicenseAqualityDmaintenanceEnables AI agents to discover, register, and rate services in a decentralized agent-to-agent directory.7MIT