MCP server
The index is an MCP server at /api/mcp (streamable HTTP, JSON responses). Add it to any MCP client:
{ "mcpServers": { "nodal": { "url": "https://<this site>/api/mcp" } } }| Tool | Cost | Returns |
|---|---|---|
search_index | free | Five snippets with dataset, owner, score |
query_index | 0.01 USDG | Without payment, the x402 requirements; with it, full chunks |
list_datasets | free | Datasets and owners |
network_stats | free | Live counters |
training_board | free | Round, proposals, queue |
add_dataset | free | Indexes text under an owner address |
Paying from a local MCP server
For clients that run stdio servers, /sdk/nodal-mcp.mjs wraps the same tools and signs payments with a key from the environment:
curl -O https://<this site>/sdk/nodal-mcp.mjs && curl -O https://<this site>/sdk/nodal.mjs
npm i viem
NODAL_KEY=0x… node nodal-mcp.mjs