MCP server · Audited from source
Midnight MCP server
by olanetsoft/midnight-mcpMIT licenceAudited 8 Oct 2026 · source 4316c1b7477d
Is it safe? Yes — SAFE, grade B (89/100). It exposes 36 tools: 33 read, 3 write and 0 destructive. The audit recorded 11 findings (0 critical, 0 high, 0 medium, 10 low). Maintainer's description: Midnight MCP server giving AI assistants access to Midnight blockchain — search contracts, analyze code, explore docs
Cite
Cite this page
ModelsAtlas. “Midnight MCP server (olanetsoft/midnight-mcp)”. Retrieved 8 Oct 2026. https://modelsatlas.com/mcp/olanetsoft/midnight
Trust audit
Audit 0.4.1 · full source read 8 Oct 2026
11 findings, listed below with the file and line each was found on. Grade A needs a sandboxed behavioural run too; this audit read the source only.
What the source does
- FilesystemDeclared10 observations
- NetworkDeclared5 observations
- ShellNone observedNothing seen in the source
- DependenciesNot pinnedSome ranges float
- SecretsNone foundNo keys in source
“Declared” means the server says it does this and the source agrees. Browser, file and shell access are expected of some kinds of server.
Five audit layers
| Layer | What we check | Result |
|---|---|---|
L0 Provenance | Repo owner, licence, archive status, activity | PASS 1 finding |
L1 Static source | Secrets, path traversal, supply chain | PASS 9 findings |
L2 Instructions | Prompt injection and authority framing in docs and tool descriptions | PASS 1 finding |
L3 Inventory | Declared tools match the source | PASS |
L4 Sandbox | Run in isolation and watch behaviour | SKIPPED |
Provenance & runtime
Who published it, and what the audit could and could not run
Provenance
- Repository owner
olanetsoftUser accountAccount type recorded when we read the repository. - PackagePublished on npm
midnight-mcpat version 0.3.0 - LicenceMITFrom the repository, as read at the audited commit.
- Last push3 months agoActivity of the repository when we read it.
- Source commit read4316c1b7477dThe audit covers exactly this commit, read on 8 Oct 2026.
Runtime
- Sandbox runNot run yetThis audit read the source only; it did not execute the server.
- Tool inventory36 declaredRead from the source and classed read, write or destructive.
Every value here is read from the record's own repository and audit.Suggest a correction
Findings (11)
Sorted by severity
LOWFilesystem / pathfs.traversal · api/scripts/index-repos.ts:21
config({ path: resolve(__dirname, "../../.env") });- Why
- No further detail recorded for this rule.
- Fix
- —
LOWFilesystem / pathfs.traversal · api/src/templates/components/tables.ts:6
import type { ToolCall } from "../../interfaces";- Why
- No further detail recorded for this rule.
- Fix
- —
LOWFilesystem / pathfs.traversal · src/tools/analyze/handlers.ts:6
import { parseCompactFile, CodeUnit } from "../../pipeline/index.js";- Why
- No further detail recorded for this rule.
- Fix
- —
LOWFilesystem / pathfs.traversal · src/tools/analyze/handlers.ts:7
import { logger } from "../../utils/index.js";- Why
- No further detail recorded for this rule.
- Fix
- —
LOWFilesystem / pathfs.traversal · src/tools/analyze/handlers.ts:12
} from "../../services/compiler.js";
- Why
- No further detail recorded for this rule.
- Fix
- —
LOWNetwork egressnet.raw_ip · tests/http-security.test.ts:9
"http://127.0.0.1:3000",
- Why
- No further detail recorded for this rule.
- Fix
- —
LOWNetwork egressnet.raw_ip · tests/http-security.test.ts:10
"https://127.0.0.1:3000",
- Why
- No further detail recorded for this rule.
- Fix
- —
LOWSupply chainsupply.unpinned · api/package.json
@types/tar-stream, hono, tar-stream, @cloudflare/workers-types, dotenv, octokit, openai, tsx
- Why
- 10 dependency range(s) float
- Fix
- pin exact versions or ship a lockfile
LOWSupply chainsupply.unpinned · package.json
@modelcontextprotocol/sdk, chromadb, dotenv, express, js-yaml, octokit, openai, yargs
- Why
- 23 dependency range(s) float
- Fix
- pin exact versions or ship a lockfile
INFOSupply chainprompt.pipe_to_shell · README.md:8
> - **Midnight Expert** (hands-on dev, Claude Code plugins): `curl -fsSL https://midnightntwrk.expert/install.sh | bash`
- Why
- No further detail recorded for this rule.
- Fix
- —
Tools it exposes
36 declared in source · 0 destructive
| Tool | Risk | What it does |
|---|---|---|
midnight-auto-update-config | write | ⚠️ DEPRECATED: Auto-update is NOT possible because AI agents run in sandboxed environments without access to local filesystems. |
midnight-get-repo-context | write | 🚀 COMPOUND TOOL: Get everything needed to start working with a repository in ONE call. Combines version info + syntax reference + relevant examples. Use this at the start of a coding session instead of multiple individual calls. Saves ~50% tokens. |
midnight-get-update-instructions | write | 📋 Get detailed, platform-specific instructions for updating Midnight MCP to the latest version. |
Documentation | read | Access documentation by section (guides, api, concepts) and topic |
approaches | read | Specific approaches to compare (comma-separated) |
complexity | read | Expected complexity level (beginner, intermediate, advanced) |
concept | read | The concept to explain (zk-proofs, circuits, witnesses, ledger, etc.) |
contractCode | read | The Compact contract code to review |
contractType | read | Type of contract (token, voting, credential, custom) |
errorMessage | read | Error message or description of the issue |
focusAreas | read | Specific areas to emphasize (security, performance, privacy, readability) |
level | read | Expertise level (beginner, intermediate, advanced) |
midnight-analyze-contract | read | ⚠️ STATIC ANALYSIS ONLY - Analyze contract structure and patterns. 🚫 THIS DOES NOT COMPILE THE CONTRACT. Cannot catch: sealed field rules, disclose() requirements, semantic errors. 👉 Use |
midnight-check-breaking-changes | read | Check if there are breaking changes between your current version and the latest release. Essential before upgrading dependencies. |
midnight-check-version | read | 🔄 Check if you |
midnight-compare-syntax | read | Compare a file between two versions to see what changed. Use this before recommending code patterns to ensure they work with the user |
midnight-document-contract | read | 📝 AI-POWERED DOCUMENTATION GENERATION Generates comprehensive documentation for Compact smart contracts. Uses the client |
midnight-extract-contract-structure | read | Extract and analyze Compact contract structure (circuits, witnesses, ledger). |
midnight-generate-contract | read | 🔮 AI-POWERED CONTRACT GENERATION Generates Compact smart contracts from natural language requirements. Uses the client |
midnight-get-file | read | Retrieve a specific file from Midnight repositories. Use repository aliases like |
midnight-get-file-at-version | read | Get the exact content of a file at a specific version. CRITICAL: Use this to ensure code recommendations match the user |
midnight-get-latest-updates | read | Retrieve recent changes and commits across Midnight repositories. Useful for staying up-to-date with the latest developments. |
midnight-get-migration-guide | read | Get a detailed migration guide for upgrading between versions, including all breaking changes, deprecations, and recommended steps. |
midnight-get-status | read | Get current server status including rate limits and cache statistics. Quick status check without external API calls. |
midnight-get-version-info | read | Get the latest version, release notes, and recent breaking changes for a Midnight repository. Use this to ensure you |
midnight-health-check | read | Check the health status of the Midnight MCP server. Returns server status, API connectivity, and resource availability. |
midnight-list-category-tools | read | 📋 DISCOVERY TOOL: List tools within a specific category. Use after midnight-list-tool-categories to see detailed tool information for a category of interest. Supports progressive disclosure pattern. |
midnight-list-examples | read | List available Midnight example contracts and DApps with descriptions, complexity ratings, and key features. |
midnight-list-tool-categories | read | 📋 DISCOVERY TOOL: List available tool categories for progressive exploration. Use this FIRST to understand what capabilities are available, then drill into specific categories with midnight-list-category-tools. Reduces cognitive load by organizing the available tools into logical groups. |
midnight-new-mcp | read | Show where midnight-mcp has moved. midnight-mcp is deprecated; Midnight |
midnight-review-contract | read | 🔍 AI-POWERED CONTRACT REVIEW Performs security review and analysis of Compact smart contracts. Uses the client |
midnight-search-compact | read | Semantic search across Compact smart contract code and patterns. Use this to find circuit definitions, witness functions, ledger declarations, and best practices for Midnight smart contracts. USAGE GUIDANCE: • Call at most 2 times per question - if first search doesn |
midnight-suggest-tool | read | 🎯 SMART DISCOVERY: Describe what you want to do in natural language, and get tool recommendations. EXAMPLES: • |
midnight-upgrade-check | read | 🚀 COMPOUND TOOL: Complete upgrade analysis in ONE call. Combines version check + breaking changes + migration guide. Use this instead of calling midnight-get-version-info, midnight-check-breaking-changes, and midnight-get-migration-guide separately. Saves ~60% tokens. |
privacyLevel | read | Required privacy features (full, partial, public) |
problem | read | The problem to solve |
Install
Package version 0.3.0 · audited commit 4316c1b
One-click links open your editor with the config below filled in, exactly as the snippets show it, pinned to version 0.3.0. The audit covers commit 4316c1b only.
claude mcp add midnight-mcp --env CLOUDFLARE_API_TOKEN=${CLOUDFLARE_API_TOKEN} --env GITHUB_TOKEN=${GITHUB_TOKEN} --env MIDNIGHT_API_TOKEN=${MIDNIGHT_API_TOKEN} --env MIDNIGHT_GITHUB_TOKEN=${MIDNIGHT_GITHUB_TOKEN} -- npx -y [email protected]{
"mcpServers": {
"midnight-mcp": {
"command": "npx",
"args": [
"-y",
"[email protected]"
],
"env": {
"CLOUDFLARE_API_TOKEN": "${CLOUDFLARE_API_TOKEN}",
"GITHUB_TOKEN": "${GITHUB_TOKEN}",
"MIDNIGHT_API_TOKEN": "${MIDNIGHT_API_TOKEN}",
"MIDNIGHT_GITHUB_TOKEN": "${MIDNIGHT_GITHUB_TOKEN}"
}
}
}
}The command pins the package version recorded in the source (0.3.0); the audit covers commit 4316c1b7477d. Transport: sse · stdio · streamable-http. Reads these environment variables: CLOUDFLARE_API_TOKEN, GITHUB_TOKEN, MIDNIGHT_API_TOKEN, MIDNIGHT_GITHUB_TOKEN, OPENAI_API_KEY. Give it the narrowest token it needs.
Audit history
- ✓SAFE B 89 / 100
First audit ·
4316c1b7477d
README badge
For maintainers · updates on every re-audit
[](https://modelsatlas.com/mcp/olanetsoft/midnight/)
The badge always shows the latest audit; a maintainer cannot pin an old verdict.
Other ratings
Cited, never blended into our score
No third-party security ratings are recorded for this server yet. When they exist they appear here with their source and date, beside, not inside, our grade.
Questions about Midnight MCP server
What is the Midnight MCP server?
What tools does Midnight expose?
Is Midnight safe to connect to an agent?
What credentials does Midnight need?
How does Midnight run?
How current is this page?
Sources
- olanetsoft/midnight-mcp on GitHub — the source we read, its licence, stars and activityObserved · 8 Oct 2026
- ModelsAtlas trust audit — SAFE verdict for commit 4316c1b7477dObserved · 8 Oct 2026
Spotted something wrong? Report a correction · Methodology
Keep going in your AI
Opens with this page as the source. We add nothing else to the prompt.
- What is the Midnight MCP server?
- What tools does Midnight expose?
- Is Midnight safe to connect to an agent?