Context42
OfficialSupports indexing Markdown (.md) documentation files with full CommonMark support, making them searchable via the MCP search tool.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Why Context42?
Your AI assistant doesn't know your team's coding conventions. Every session starts from zero — your standards get lost, docs are scattered across wikis and READMEs, and pasting entire documents into prompts wastes tokens.
Context42 solves this by indexing your documentation locally and serving the most relevant chunks to your AI assistant via MCP — automatically, semantically, and without any data leaving your machine.
Related MCP server: Cortex
How it works
Add your documentation directories as sources
Index — Context42 chunks your docs and creates local vector embeddings
Store — Vectors are saved locally in LanceDB
Serve — Your AI assistant queries relevant content via MCP, weighted by priority
Installation
Requires Python 3.11+
# Using pipx (recommended)
pipx install context42-io
# Using uv
uvx context42-io
# Using pip
pip install context42-ioQuick Start
# 1. Add your documentation
c42 add ~/my-coding-standards --name standards --priority 0.9
# 2. Index the content
c42 index
# 3. Start the MCP server
c42 serveClaude Desktop Integration
Add to your Claude Desktop configuration file:
Platform | Path |
Linux |
|
macOS |
|
Windows |
|
{
"mcpServers": {
"context42": {
"command": "c42",
"args": ["serve"]
}
}
}Restart Claude Desktop after adding the configuration.
CLI Reference
Adding & indexing sources
c42 add <path> --name <name> # Add a documentation source
c42 add <path> --name <name> --priority 0.9 # Add with priority (0.1–1.0)
c42 add <path> --name <name> --exclude "*.log,tmp/*" # Exclude file patterns
c42 index # Index all pending sourcesManaging sources
c42 list # List all sources with status
c42 set-priority <name> <value> # Change source priority
c42 remove <name> # Remove a source
c42 status # Show index statisticsSearching & serving
c42 search "error handling" # Search from the CLI
c42 serve # Start the MCP server
c42 --help # Show all available commandsPriority System
Set higher priority for your personal instructions so they take precedence over reference documentation:
# Your rules — highest weight
c42 add ~/my-standards --name standards --priority 1.0
# Team guidelines — medium weight
c42 add ~/team-docs --name team --priority 0.7
# Reference docs — lower weight
c42 add ~/library-docs --name reference --priority 0.4Search results are weighted by priority, so your personal preferences always appear first.
Supported Formats
Format | Extensions | Notes |
Markdown |
| Full CommonMark support |
reStructuredText |
| Sphinx-compatible |
More formats planned — see Roadmap.
MCP Tool
Context42 exposes a single search tool via MCP:
search(query: string, top_k?: int) → SearchResult[]Each result includes:
text— The matching content chunksource— Name of the sourcefile— Relative path to the filescore— Similarity score (0–1, higher = more relevant)priority— Source priority weightis_priority—trueif the source has priority ≥ 0.8
Configuration
Context42 works out of the box with no configuration required. All settings below are optional:
Variable | Default | Description |
|
| Sentence-transformer embedding model |
|
| Characters per chunk |
|
| Chunks per indexing batch |
| Platform default | Data storage directory |
| — | Hugging Face token for faster model downloads |
# Example: use a different embedding model
export C42_EMBEDDING_MODEL="BAAI/bge-base-en-v1.5"
# Optional: set HuggingFace token for faster downloads
export HF_TOKEN="hf_your_token_here"Note: Changing the embedding model requires re-indexing all sources (
c42 index).
Get your HF token at: https://huggingface.co/settings/tokens
Data Storage
Platform | Path |
Linux |
|
macOS |
|
Windows |
|
Security & Privacy
Context42 processes everything locally. Your code and documentation never leave your machine.
Zero data transmission — No outbound network calls
Local-only embeddings — The AI model runs on your CPU, no tokens sent to external APIs
No telemetry — No analytics, no crash reports, no phone-home behavior
Works air-gapped — After initial setup, no internet connection needed
Learn more at context42.io.
Roadmap
Git clone sources — Add any Git repository as a source
File watcher — Auto re-index when files change on disk
Git sync — Detect new commits and re-index automatically
See all planned features and suggest new ones on GitHub Issues.
Contributing
Contributions are welcome! Feel free to:
Submit a pull request
License
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Versioned documentation registry and semantic search for AI tools and coding assistants.
Persistent personal memory for AI assistants — save, search, and recall across every MCP client.
Your memory, everywhere AI goes. Build knowledge once, access it via MCP anywhere.
Give your AI agent persistent, governed memory for every project. At task start it recalls the approved decisions, conventions, risks and architecture (semantic search, ranked by importance); at close it proposes what was learned as typed memories that you review and approve — governance, not a notes dump. Agents propose, humans govern: edits go back to pending and deletion is human-only by design. Connect Claude Code, Cursor, Claude Desktop or any MCP client in two minutes with just your API key — hosted (nothing to install) or locally via `uvx solucortex-mcp`. Built by SoluAI and dogfooded daily: SoluCortex is developed using its own living memory.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables AI assistants to intelligently search and reference documentation using hybrid semantic + keyword search via MCP protocol.-
- AlicenseNot gradedqualityDmaintenanceEnables AI coding assistants to semantically search and retrieve relevant code patterns, documentation, and implementations from a codebase via MCP tools.8MIT
- AlicenseAqualityCmaintenanceEnables AI coding agents to intelligently index and search codebases with sub-20ms retrieval, 8x memory compression, and cross-encoder reranking via MCP stdio.5MIT
- AlicenseNot gradedqualityBmaintenanceA local-first MCP server that lets AI assistants search and retrieve context from indexed projects, Git state, decisions, and tasks without sending data to the cloud.MIT