Live survey315 models · 14 providers · 23,592 auditsAudited implement · SAFE →What changedHow we verifyllms.txt

MCP server · Audited from source

Midnight MCP server

by olanetsoft/midnight-mcpMIT licenceAudited 8 Oct 2026 · source 4316c1b7477d

npm midnight-mcp 0.3.0ssestdiostreamable-http★ 37
✓SAFEGrade B · 89/100 · 8 Oct 2026 · 4316c1b
37GitHub stars

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

Ask an AI about this pageGChatGPTCClaudePPerplexityGeGeminiXGrok
More
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

Trust score89/100✓SAFE B
0 critical0 high0 medium10 low1 info

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

LayerWhat we checkResult
L0 ProvenanceRepo owner, licence, archive status, activityPASS 1 finding
L1 Static sourceSecrets, path traversal, supply chainPASS 9 findings
L2 InstructionsPrompt injection and authority framing in docs and tool descriptionsPASS 1 finding
L3 InventoryDeclared tools match the sourcePASS
L4 SandboxRun in isolation and watch behaviourSKIPPED

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 npmmidnight-mcp at 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

LOWInventory / provenanceinv.hidden_file · .prettierrc.json
F-13 Inventory / provenanceCWE-1104Layer L0
.prettierrc.json
Why
hidden member outside the usual dotfiles
Fix
review its purpose
LOWFilesystem / pathfs.traversal · api/scripts/index-repos.ts:21
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
config({ path: resolve(__dirname, "../../.env") });
Why
No further detail recorded for this rule.
Fix
—
LOWFilesystem / pathfs.traversal · api/src/templates/components/tables.ts:6
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
import type { ToolCall } from "../../interfaces";
Why
No further detail recorded for this rule.
Fix
—
LOWFilesystem / pathfs.traversal · src/tools/analyze/handlers.ts:6
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
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
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
import { logger } from "../../utils/index.js";
Why
No further detail recorded for this rule.
Fix
—
LOWFilesystem / pathfs.traversal · src/tools/analyze/handlers.ts:12
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
} from "../../services/compiler.js";
Why
No further detail recorded for this rule.
Fix
—
LOWNetwork egressnet.raw_ip · tests/http-security.test.ts:9
F-04 Network egressCWE-200 · CWE-319Layer L1
"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
F-04 Network egressCWE-200 · CWE-319Layer L1
"https://127.0.0.1:3000",
Why
No further detail recorded for this rule.
Fix
—
LOWSupply chainsupply.unpinned · api/package.json
F-08 Supply chainCWE-829 · CWE-1357Layer L1
@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
F-08 Supply chainCWE-829 · CWE-1357Layer L1
@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
F-08 Supply chainCWE-829 · CWE-1357Layer L2
> - **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

33 read3 write0 destructive
ToolRiskWhat it does
midnight-auto-update-configwrite⚠️ DEPRECATED: Auto-update is NOT possible because AI agents run in sandboxed environments without access to local filesystems.
midnight-get-repo-contextwrite🚀 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-instructionswrite📋 Get detailed, platform-specific instructions for updating Midnight MCP to the latest version.
DocumentationreadAccess documentation by section (guides, api, concepts) and topic
approachesreadSpecific approaches to compare (comma-separated)
complexityreadExpected complexity level (beginner, intermediate, advanced)
conceptreadThe concept to explain (zk-proofs, circuits, witnesses, ledger, etc.)
contractCodereadThe Compact contract code to review
contractTypereadType of contract (token, voting, credential, custom)
errorMessagereadError message or description of the issue
focusAreasreadSpecific areas to emphasize (security, performance, privacy, readability)
levelreadExpertise level (beginner, intermediate, advanced)
midnight-analyze-contractread⚠️ 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-changesreadCheck if there are breaking changes between your current version and the latest release. Essential before upgrading dependencies.
midnight-check-versionread🔄 Check if you
midnight-compare-syntaxreadCompare a file between two versions to see what changed. Use this before recommending code patterns to ensure they work with the user
midnight-document-contractread📝 AI-POWERED DOCUMENTATION GENERATION Generates comprehensive documentation for Compact smart contracts. Uses the client
midnight-extract-contract-structurereadExtract and analyze Compact contract structure (circuits, witnesses, ledger).
midnight-generate-contractread🔮 AI-POWERED CONTRACT GENERATION Generates Compact smart contracts from natural language requirements. Uses the client
midnight-get-filereadRetrieve a specific file from Midnight repositories. Use repository aliases like
midnight-get-file-at-versionreadGet the exact content of a file at a specific version. CRITICAL: Use this to ensure code recommendations match the user
midnight-get-latest-updatesreadRetrieve recent changes and commits across Midnight repositories. Useful for staying up-to-date with the latest developments.
midnight-get-migration-guidereadGet a detailed migration guide for upgrading between versions, including all breaking changes, deprecations, and recommended steps.
midnight-get-statusreadGet current server status including rate limits and cache statistics. Quick status check without external API calls.
midnight-get-version-inforeadGet the latest version, release notes, and recent breaking changes for a Midnight repository. Use this to ensure you
midnight-health-checkreadCheck the health status of the Midnight MCP server. Returns server status, API connectivity, and resource availability.
midnight-list-category-toolsread📋 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-examplesreadList available Midnight example contracts and DApps with descriptions, complexity ratings, and key features.
midnight-list-tool-categoriesread📋 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-mcpreadShow where midnight-mcp has moved. midnight-mcp is deprecated; Midnight
midnight-review-contractread🔍 AI-POWERED CONTRACT REVIEW Performs security review and analysis of Compact smart contracts. Uses the client
midnight-search-compactreadSemantic 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-toolread🎯 SMART DISCOVERY: Describe what you want to do in natural language, and get tool recommendations. EXAMPLES: •
midnight-upgrade-checkread🚀 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.
privacyLevelreadRequired privacy features (full, partial, public)
problemreadThe 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]

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

  1. ✓SAFE B 89 / 100

    First audit · 4316c1b7477d

README badge

For maintainers · updates on every re-audit

ModelsAtlas: SAFE BMODELSATLASSAFE · B
[![ModelsAtlas: SAFE B](https://modelsatlas.com/mcp/olanetsoft/midnight/badge.svg)](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?
Midnight MCP server giving AI assistants access to Midnight blockchain — search contracts, analyze code, explore docs
What tools does Midnight expose?
36 in total: 33 read-only, 3 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.
Is Midnight safe to connect to an agent?
The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean server reads B.
What credentials does Midnight need?
It reads CLOUDFLARE_API_TOKEN, GITHUB_TOKEN, MIDNIGHT_API_TOKEN, MIDNIGHT_GITHUB_TOKEN and OPENAI_API_KEY from the environment. Give it a token scoped to the least it needs — an agent that can be talked into calling a tool can be talked into calling it with your credentials.
How does Midnight run?
It speaks sse, stdio and streamable-http, so it runs as a local process your client starts. It is published on npm as midnight-mcp at 0.3.0.
How current is this page?
The grade is for one exact copy of the source (4316c1b7477d), read on 2026-10-08. The repository is watched and re-audited when it changes.

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.