@agent-idx/client
OfficialClick on "Install 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: AgentAnycast
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 installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/agent-idx/mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server