{"slug": "read-rpc-docs-from-node-js-with-mcp-use-without-a-model-or-api-key", "title": "Read RPC docs from Node.js with mcp-use—without a model or API key", "summary": "A developer published a Node.js example using the mcp-use client (pinned to version 2.4.5) to query BlockVectra's documentation-only MCP endpoint over Streamable HTTP without a model, API key, wallet, or local server. The script lists the two exposed tools, search_docs and read_doc, searches for \"quickstart\" with a one-result limit, and prints the returned Markdown, failing on empty or malformed results with 15-second call timeouts. A November 11 internal check on Node.js 26.8.1 recorded four HTTP 200 responses across discovery, tool listing, search, and read.", "body_md": "You can retrieve RPC setup documentation through MCP without starting a model-driven agent. This Node.js example lists the available documentation tools, searches for `quickstart`, and prints the Markdown returned by `read_doc`. It reads instructions; it does not execute the RPC or account steps inside them.\n\nThe endpoint is BlockVectra's documentation-only `https://docs.blockvectra.com/mcp/docs`, served over Streamable HTTP. It exposes only `search_docs` and `read_doc`. No BlockVectra account, API key, wallet, model API, or local MCP server is needed.\n\nYou need Git, npm, and Node.js **22.22.2 or newer**. Start from this exact revision so the code and committed dependency lockfile match:\n\n```\ngit clone https://github.com/blockvectra/agent-quickstart.git\ncd agent-quickstart\ngit checkout --detach c4c0d5c81c5518add7f0f204a77f42934d183588\ncd examples/mcp-use-docs\nnpm ci --ignore-scripts\nnpm start\n```\n\nThe example pins `@mcp-use/client` to **2.4.5**. Installation needs network access to the npm registry; it happens before the script starts. `npm start` runs `node remote-docs.ts`. The example disables SDK anonymous telemetry before importing the client module:\n\n```\nprocess.env.MCP_USE_ANONYMIZED_TELEMETRY = \"false\";\nconst { MCPClient } = await import(\"@mcp-use/client\");\n```\n\nThe first output line lists the two documentation tools. The script then searches in English with a one-result limit:\n\n``` js\n    const search = await connection.callTool(\n      \"search_docs\",\n      { query: \"quickstart\", lang: LANG, limit: 1 },\n      { timeout: TIMEOUT }\n    );\n```\n\nHere, `LANG` is `\"en\"` and `TIMEOUT` is `15000` milliseconds. The script parses the search result's text as JSON and checks that its first result contains a usable `path`. It passes that actual returned value to `read_doc` with the same language—not a document ID, a full URL, or a guessed filename.\n\nLook for `first result:` followed by the selected path, then the page's Markdown. Empty or malformed search results stop the script rather than silently substituting a page. Tool errors and missing text also fail the run; the client closes in `finally` on success or failure. Calls have 15-second timeouts.\n\nA November 11 internal check using Node.js 26.8.1 recorded four HTTP 200 responses for discovery, tool listing, search, and read; that is one tested configuration, not a performance benchmark or a model-agent walkthrough.\n\nThe [complete source](https://github.com/blockvectra/agent-quickstart/blob/c4c0d5c81c5518add7f0f204a77f42934d183588/examples/mcp-use-docs/remote-docs.ts) keeps the connection and error handling together. Documentation success does not establish business RPC or Data API success: those use the full connection and their own public-method or authentication policies.\n\nFor client setup, see the [MCP server guide](https://docs.blockvectra.com/en/guides/mcp-server/?ref=dev-node-mcp-use-1112#docs-only-remote-http).", "url": "https://wpnews.pro/news/read-rpc-docs-from-node-js-with-mcp-use-without-a-model-or-api-key", "canonical_source": "https://dev.to/blockvectra/read-rpc-docs-from-nodejs-with-mcp-use-without-a-model-or-api-key-39oo", "published_at": "2026-11-12 04:45:35+00:00", "updated_at": "2026-11-12 04:50:38.114059+00:00", "lang": "en", "topics": ["ai-agents", "agent-protocols", "developer-tools", "ai-tools"], "entities": ["BlockVectra", "mcp-use", "@mcp-use/client", "Node.js", "GitHub", "npm"], "also_reported_by": [], "alternates": {"html": "https://wpnews.pro/news/read-rpc-docs-from-node-js-with-mcp-use-without-a-model-or-api-key", "markdown": "https://wpnews.pro/news/read-rpc-docs-from-node-js-with-mcp-use-without-a-model-or-api-key.md", "text": "https://wpnews.pro/news/read-rpc-docs-from-node-js-with-mcp-use-without-a-model-or-api-key.txt", "jsonld": "https://wpnews.pro/news/read-rpc-docs-from-node-js-with-mcp-use-without-a-model-or-api-key.jsonld"}}