Midnight MCP
Enables LLM clients to query a comprehensive Midnight knowledge workspace using indexed evidence from code, Confluence, and Google Drive, with source integrity enforcement and audience-specific answer shaping.
README
PROTOTYPE: MIDNIGHT MCP KNOWLEDGE WORKSPACE
Author: @noelrim
Date: March 2026
Github Repository: https://github.com/shieldedtech/product/tree/prototypes/prototypes/midnight-mcp
Gap
Midnight knowledge is spread across source repositories, Confluence, Google Drive, and strategy/process documents. Answering product or technical questions reliably requires switching between many systems, and generic LLM workflows tend to confuse documented intent with implemented reality. In practice, teams either burn tokens by stuffing large context into prompts, or repeatedly upload the same material across sessions and tools.
Purpose
This prototype is an LLM-first Midnight knowledge workspace built around an MCP server, a local index backend, and a one-command installer. Its purpose is to make the broadest useful Midnight context available to any LLM client with minimal user effort, without repeatedly uploading the same documents or paying token costs to restate large context windows on every question. It lets Codex or similar clients answer Midnight questions using indexed evidence from code, Confluence, and Drive while enforcing explicit source integrity rules.
Data Sources:
- Code Index: Midnight repositories and selected repo documentation.
- Confluence Index: exported internal workspace pages.
- Google Drive Index: exported internal docs such as PRDs, strategy docs, and research.
- Pinned Source Repos: optional local clones aligned to the exact indexed commits.
Features
-
MCP-First Midnight Retrieval
- Exposes a dedicated Midnight MCP server with retrieval, status, and preference tools.
- Shapes answers by audience mode (
executive,product,mixed,engineering,forensic) and verbosity. - Returns source-integrity metadata so code-backed implementation can be separated from docs-only intent.
- Makes retrieval reusable across sessions, so LLMs query the index instead of re-ingesting the same raw context repeatedly.
-
Two-Pass Evidence Model
- Runs a broad retrieval pass for cross-source context.
- Runs a forced code verification pass when implementation checking is enabled.
- Uses alias-expanded fallback queries to handle naming drift such as
Technical AuthorityvsTechnical Committee.
-
One-Command Installer
- Installs MCP config, Codex skill, indexes, raw docs bundles, and optional pinned repos.
- Pulls private artifacts from Google Drive by default.
- Includes live progress bars, ETA, and auth/session reuse.
- Optimizes for low-friction LLM enablement rather than manual context assembly.
-
Reproducible Local Context
- Ships
repo-fingerprints.jsonso indexed repositories can be cloned and checked out at the exact indexed commit. - Remaps workspace-relative paths so retrieved evidence remains explorable after install.
- Ships
Technical Highlights
- MCP Layer: Node.js server wrapping a local retrieval backend and enforcing source-policy logic.
- Indexer Backend: FastAPI + LlamaIndex persisted storage served via
/health,/search, and/doc. - Embedding Stack: local HuggingFace embeddings using
BAAI/bge-base-en-v1.5. - Model Flexibility: indexes are versioned per embedding model slug, so multiple LlamaIndex-compatible embedding models can coexist and be installed on demand.
- Chunking Profile:
2200chunk size with80overlap across code, docs, and drive indexes. - Artifact Distribution: private Drive-based bundle delivery for indexes and raw docs, with GitHub release support as fallback.
Design Notes
- This is primarily an LLM context-delivery system, not just an MCP wrapper.
- Code and tests are treated as implementation truth when implementation evidence is expected.
- Documentation is preserved as valuable product/process context, but not accepted as implementation proof by default.
- The retrieval contract is backend-agnostic at the API level, even though the current persisted indexes use LlamaIndex.
For deeper architecture and rationale, see ARCHITECTURE.md.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.