knowledge-mcp
Click on "Install 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., "@knowledge-mcpsearch for API authentication docs in the payments repository"
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.
Knowledge MCP Server
A vendor-neutral Knowledge MCP server for Codex, OpenCode, Claude Code, Gemini CLI, and other MCP-compatible clients.
Overview
This server provides a stable MCP interface for knowledge retrieval across repositories. The MCP contract remains stable while storage, search, embedding, indexing, and transport implementations can be replaced independently.
Related MCP server: mcp-docs
Features
Stable MCP Contract v1:
knowledge_search,knowledge_get,knowledge_listVendor-Neutral Architecture: Ports and adapters pattern
Hybrid Retrieval: Lexical (SQLite FTS) + Optional Semantic (Qdrant)
Docker Support: Multi-stage BuildKit builds, multi-platform (amd64/arm64)
Quick Start
Prerequisites
Python 3.12+
uv package manager
Docker (optional, for containerized deployment)
Local Development
# Install dependencies
uv sync
# Run tests
uv run pytest
# Run the server (stdio mode)
uv run python -m knowledge_mcp
# Run with HTTP transport
TRANSPORT=http uv run python -m knowledge_mcpDocker Deployment
# Build image
make docker-build
# Start container
make docker-up
# View logs
make docker-logs
# Stop container
make docker-downProject Structure
knowledge-mcp/
├── src/knowledge_mcp/ # Main package
│ ├── __init__.py
│ ├── __main__.py # CLI entrypoint
│ └── server.py # Server implementation
├── tests/ # Test suite
├── docs/ # Documentation
│ ├── decisions/ # Architecture Decision Records
│ └── contracts/ # MCP contract definitions
├── Dockerfile
├── docker-compose.yml
├── Makefile
└── pyproject.tomlArchitecture
The server follows the ports and adapters (hexagonal) architecture:
MCP / CLI / watcher entrypoints
|
v
application services
|
v
domain and ports
^
|
infrastructure adaptersDomain and application packages never import infrastructure, MCP SDK, or provider-specific types.
MCP Contract v1
Tools
Tool | Description |
| Search knowledge with scope, filters, and limits |
| Retrieve exact document or section by ID |
| List documents with prefix and depth filtering |
Resources
URI | Description |
| Server status and health |
| Document content resource |
Knowledge Routing
Mode | Use Case |
| Explicit target, one repository, low architectural risk |
| Ambiguous location, multiple layers |
| Cross-repository, architecture, security |
Configuration
See .env.example for available configuration options.
Key Settings
TRANSPORT: stdio, http, or sseKNOWLEDGE_ROOT: Path to knowledge sourcesLEXICAL_PROVIDER: sqlite_fts (default), or disabledSEMANTIC_PROVIDER: disabled (Phase 8: qdrant)
Development
Quality Gates
# Format check
uv run ruff format --check .
# Lint check
uv run ruff check .
# Type check
uv run pyright
# All checks
make test-ciPhase Implementation
This project follows a phased implementation approach. See the implementation plan for details.
License
MIT
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityDmaintenanceMCP server that provides semantic search, graph query, and keyword search tools for interacting with DocSmith's knowledge graph and documentation.1MIT
- Alicense-qualityDmaintenanceMCP server for documentation search that automatically indexes web documentation sites and provides semantic, full-text, or hybrid search capabilities.8MIT
- AlicenseAqualityCmaintenanceA local MCP server enabling hybrid search over documents, memory, and knowledge graphs for retrieval-augmented generation, with tools for SQLite, semantic memory, and entity-relationship queries.41MIT
- Flicense-qualityCmaintenanceMCP server that indexes technical documents and provides hybrid search (vector + BM25) for retrieval only, without generation.
Related MCP Connectors
Agentic search over your Dewey document collections from any MCP-compatible client.
MCP server for AgentDocs (agentdocs.eu): read, search, write, comment on & share Markdown docs.
Cross-vendor AI memory over MCP. One semantic store, readable and writeable from every MCP client.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/gilanggsb/knowledge-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server