Midnight MCP
Indexes Confluence pages for retrieval, allowing queries over exported workspace content with source integrity metadata.
Indexes Google Drive documents (e.g., PRDs, strategy docs, research) for retrieval, enabling cross-source context queries.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Midnight MCPWhat is the roadmap for Midnight's Q3 release?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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.
Related MCP server: rbac-rag-assistant
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.
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.
This server cannot be deployed
Maintenance
Related MCP Connectors
Securely search and manage workspace context files for AI agents and teams.
Read-only answers and semantic search for wiki.private.law, served by the Mothership runtime.
Make your knowledge agent-ready. One MCP endpoint, 5 connectors, 3 search modes.
- KumbukaOAuthai.kumbuka
Governed, auditable knowledge your team curates for its AI assistants, self-hostable
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables querying Confluence or Kubernetes documentation through hybrid search and an agentic RAG pipeline, returning structured answers with citations.Apache 2.0
- FlicenseNot gradedqualityBmaintenanceEnables MCP clients to ask plain-language questions and receive answers grounded only in documents the configured role is cleared to read, with the same access-controlled tools available across any client.-
- FlicenseNot gradedqualityBmaintenanceEnables traceable, version-aware question answering over product documentation, combining vector and graph retrieval to return cited evidence and support agentic workflows.-
- AlicenseNot gradedqualityBmaintenanceEnables Agents to retrieve structured evidence with spans, versions, and content hashes from a self-hosted knowledge base, and optionally delegate single-shot questions. Exposes read-only search, evidence lookup, and answer tools over Streamable HTTP with Bearer authentication.MIT