noir-mcp-server
MCP server for Noir development that clones and searches Noir documentation, standard library, examples, and community libraries.
README
noir-mcp-server
MCP server for Noir development — clones and searches Noir documentation, standard library, examples, and community libraries.
Install
Claude Code
claude mcp add noir-mcp -- npx noir-mcp-server@latest
Codex
codex mcp add noir-mcp -- npx noir-mcp-server@latest
Claude Desktop / Cursor / Windsurf
Add to your MCP config file (e.g. ~/.claude/mcp.json, claude_desktop_config.json):
{
"mcpServers": {
"noir": {
"command": "npx",
"args": ["noir-mcp-server@latest"]
}
}
}
OpenCode
Add to your config file (e.g. ~/.config/opencode/opencode.json):
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"noir": {
"type": "local",
"command": ["npx", "-y", "noir-mcp-server@latest"],
"enabled": true,
},
},
}
From source
git clone https://github.com/critesjosh/noir-mcp-server.git
cd noir-mcp-server
npm install && npm run build
Then point your MCP config to the built file:
{
"mcpServers": {
"noir": {
"command": "node",
"args": ["/path/to/noir-mcp-server/dist/index.js"]
}
}
}
Tools
| Tool | Description |
|---|---|
noir_sync_repos |
Clone/update repos. Default: core only. Add categories: ["libraries"] for packages. |
noir_status |
Check repo clone status |
noir_search_code |
Search .nr files across repos |
noir_search_docs |
Search Noir documentation |
noir_search_stdlib |
Search standard library |
noir_list_examples |
List available examples |
noir_read_example |
Read example source |
noir_read_file |
Read any file from repos |
noir_list_libraries |
List libraries with descriptions & clone status |
Repository Categories
Core (synced by default):
noir— Compiler, stdlib, tooling, docsnoir-examples— Official example circuits
Libraries (sync with categories: ["libraries"]):
noir-bignum— Big integer arithmeticnoir_bigcurve— Elliptic curve operationsnoir_json_parser— JSON parsing (RFC 8259)noir_string_search— Substring search/proofnoir_sort— Array sortingsparse_array— Sparse array implementationzk-kit.noir— Merkle trees, ECDH, and more
Reference (sync with categories: ["reference"]):
awesome-noir— Curated ecosystem index
When this server helps (and when it doesn't)
Good fit:
- Writing or editing Noir circuits with an AI agent that would otherwise lean on stale, pre-1.0 syntax from memory. The Noir docs and standard library are pinned to a specific release, so the agent works from version-correct language source rather than guessing.
- Looking up how a stdlib function, trait, or type is actually defined or used (e.g.
hash,Field,assert,pedersen). - Finding real, working example circuits to adapt (
noir-examples,noir/examples). - Discovering ecosystem libraries and reading their source.
- Grounding an agent so it stops inventing outdated syntax. Pair it with
nargo checkto confirm the result compiles.
Poor fit:
- You want guaranteed-correct, compilable output without verifying it yourself. This server does not compile or run anything; always confirm with
nargo check. - You need community libraries to exactly match your pinned compiler. Libraries are cloned at their latest branch, not a release matched to the compiler (see Limitations).
- Conceptual or design questions ("what is the best way to structure a Merkle-membership circuit?"). Search is keyword/regex, not semantic; the model plus the docs site may serve you better.
- Proving-backend workflows beyond reading
bb.jssource. - Offline use, or environments without
git(and ideallyripgrep) installed.
Limitations
- Read-only, no verification. It surfaces source and docs but does not compile, type-check, or run circuits. It cannot confirm that code is correct; run
nargo checkagainst a matching toolchain. - Core repos are pinned; libraries are not. The
noirrepo (docs, stdlib, in-repo examples) andbb.jsare checked out at a fixed tag; community libraries are cloned at theirmain/masterbranch tip, which may be newer or older than the pinned compiler. Noir'scompiler_versionfield only expresses a full-release floor (e.g.>=1.0.0) and cannot distinguish between betas, so it will not flag a beta-level mismatch. Treat library code as a reference and verify it against your toolchain. - Keyword search, not semantic. Search is ripgrep over files. It excels at finding a known symbol or string and is weak at open-ended "how do I do X" questions.
- Single-line matches. Results are matching lines without surrounding context; reading the full function or doc comment usually needs a follow-up
noir_read_file. - Sync required, and the first sync is slow. Repos are cloned locally over the network before search works. Core is two repos; adding library or reference categories clones more.
- One version at a time. The server serves a single pinned Noir line (see Environment Variables). Switching versions means re-syncing with
version, and library compatibility is still not guaranteed. - Snapshot, not live. Content reflects the pinned tag (docs/stdlib) and your last sync (libraries). Re-sync to pick up updates.
- Host dependencies. Requires
git; usesripgrepwhen present and falls back to a slower built-in search otherwise.
Environment Variables
| Variable | Default | Description |
|---|---|---|
NOIR_DEFAULT_VERSION |
v1.0.0-beta.21 |
Noir version tag for the main repo |
NOIR_MCP_REPOS_DIR |
~/.noir-mcp |
Base directory for cloned repos |
Development
npm run dev # Watch mode
npm run build # Build
npm start # Run server
npm test # Run the Vitest unit suite
node test.mjs # Optional live integration smoke test (clones repos)
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。