Novai Mcp Server

io.github.0x-devcv0.1.1更新於 Sep 29, 2026

Read-only MCP server for querying the live NOVAI blockchain over its public JSON-RPC endpoint.

已驗證STDIO僅桌面Cloud & Infrastructure

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Novai Mcp Server,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

NOVAI MCP server

A read-only Model Context Protocol (MCP) server that lets any MCP-equipped agent query the live NOVAI chain over its public JSON-RPC endpoint. It exposes query tools only. There is no write, sign, submit, or key-handling path anywhere in this package.

NOVAI is an AI-native layer 1 with chained-BFT consensus. This server is a thin, typed bridge: an agent discovers the tools through standard MCP tooling and reads the chain without writing any SDK code.

Safety boundary

This is version 0 and it is read-only by design.

  • Every tool is a query that maps to a single read method on the public endpoint.
  • The package never holds a private key, never signs, and never submits a transaction.
  • The write methods the chain exposes are deliberately not wired in.

Requirements

  • Node.js 18 or newer.

Install and run

Run it directly with npx:

npx novai-mcp-server

Or install it and run the binary:

npm install novai-mcp-servernovai-mcp-server

The server speaks MCP over stdio. Point your MCP client at the command above.

Example MCP client configuration

json
{  "mcpServers": {    "novai": {      "command": "npx",      "args": ["novai-mcp-server"]    }  }}

Configuration

  • NOVAI_RPC_URL overrides the JSON-RPC endpoint. It defaults to the public NOVAI URL, https://rpc.novai.network. No other configuration, no secrets, and no auth are required, because the public endpoint is open and read-only.

Tools

All hashes and ids are 64 hex characters (32 bytes, no 0x prefix). All heights are non-negative integers. Every input is validated before any network call, and both chain errors and transport failures are returned as clean tool errors with no stack traces.

ToolReturnsRequired paramsOptional params
novai_get_chain_statusThe latest committed block, so you can verify the chain is live and learn the tip heightnonenone
novai_get_blockA single blockexactly one of height or hashnone
novai_get_transactionA confirmed transaction, or null if unknowntxidnone
novai_get_ai_entityAn AI entity (agent) record, or null if unknownentity_idnone
novai_get_balanceBalance (decimal string) and nonce for an addressaddressnone
novai_get_signals_by_heightSignal commitments recorded at a heightheightnone
novai_get_signals_by_issuerSignals issued by an entity within a height rangeissuer, start_height, end_heightnone
novai_get_signals_by_typeSignals of a type within a height rangesignal_type, start_height, end_heightnone
novai_get_oracle_anchorAn oracle anchor by signal hash, or null if unknownsignal_hashnone
novai_get_oracle_anchors_by_entityOracle anchors by issuer within a height rangeentity_id, start_height, end_heightts_min, ts_max
novai_get_oracle_anchors_by_tagOracle anchors by data tag within a height rangedata_tag, start_height, end_heightts_min, ts_max
novai_get_memory_objectsOn-chain memory objects owned by an entityentity_idnone

A note on block lookups by height

The endpoint retains a bounded recent window of blocks by height, so a height far below the current tip can return null even though it was a valid block. Lookups by hash work for any block the node still indexes. Call novai_get_chain_status first to learn the current tip height.

Development

npm installnpm run buildnpm test

npm test runs the offline unit and validation tests. To exercise the live endpoint:

npm run test:live

An end-to-end stdio check that spawns the built server and drives it with a real MCP client is available:

npm run build && node scripts/smoke.mjs

License

MIT. See the LICENSE file.

來源:README.md,提交 429e58a

工具

0
工具後設資料尚未被收錄。

版本歷史

1
  1. v0.1.1最新Sep 16, 2026