MCP Knowledge Base Server
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., "@MCP Knowledge Base ServerSearch the knowledge base for the rollback procedure if a deploy goes wrong"
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.
MCP Knowledge Base Server
An MCP (Model Context Protocol) server that gives AI assistants — Claude Desktop, Cursor, or any MCP client — searchable, structured access to a company's internal knowledge base of Markdown documents.
Ask your assistant "how do I deploy to production?" or "how many vacation days do I get?" and it will search the knowledge base, read the relevant articles, and answer with citations — instead of hallucinating your internal processes.
Features
6 tools — keyword search with snippets, full-document fetch, filtered listing, tag browsing, hot reload, and stats
2 resource types — browse the whole index or any document directly (
kb://index,kb://documents/{doc_id})1 prompt template —
answer_from_knowledge_basegrounds answers in search results and forces citationsZero-infrastructure — the knowledge base is just a folder of
.mdfiles with optional frontmatter; works great backed by a Git repoTwo transports — stdio for local clients, HTTP for shared/remote setups
Dependency-light — FastMCP + a small built-in TF-IDF-style index; no database, no embeddings service required
Related MCP server: MCP Docs Server
Architecture
┌─────────────────┐ stdio / HTTP (JSON-RPC) ┌──────────────────────────┐
│ MCP client │ ───────────────────────────▶ │ FastMCP server │
│ (Claude, …) │ ◀─────────────────────────── │ ├─ tools (search, get…) │
└─────────────────┘ │ ├─ resources (kb://…) │
│ └─ prompts (answer…) │
│ │ │
│ KnowledgeBaseIndex │
│ (tokenize → TF-IDF) │
└──────────┬─────────────┘
│ scans
┌──────────▼─────────────┐
│ knowledge_base/ │
│ engineering/*.md │
│ hr/*.md product/*.md │
└────────────────────────┘Quickstart
git clone <your-repo-url> mcp-knowledge-base-server
cd mcp-knowledge-base-server
pip install .Point the server at your own docs (or use the included sample corpus):
export KB_DIR=/path/to/your/markdown/docsRun the demo
pip install fastmcp # only dependency the demo needs
python examples/demo_client.pyThe demo spawns the server over stdio and exercises every capability — search, document fetch, listing, resources, and the grounded-answer prompt — printing the exact JSON-RPC payloads a real client would see.
Connect Claude Desktop
Add to claude_desktop_config.json:
{
"mcpServers": {
"knowledge-base": {
"command": "python",
"args": ["-m", "mcp_knowledge_base.server"],
"env": {
"PYTHONPATH": "/absolute/path/to/mcp-knowledge-base-server/src",
"KB_DIR": "/absolute/path/to/mcp-knowledge-base-server/knowledge_base"
}
}
}
}Restart Claude Desktop, then ask: "Search our knowledge base — what's the rollback procedure if a deploy goes wrong?"
Run over HTTP (shared/remote setups)
KB_DIR=/path/to/docs mcp-knowledge-base --transport http --port 8000
# → streamable HTTP endpoint at http://127.0.0.1:8000/mcpDocument format
Any folder of .md files works. Optional frontmatter enriches results:
---
title: Deploying to Production
tags: [deploy, production, runbook]
department: engineering
updated: 2025-11-02
---
# Deploying to Production
…The document doc_id is its path relative to KB_DIR without the extension
(e.g. engineering/deploy-guide). Title falls back to the first # heading,
then the filename.
API reference
Tools
Tool | Description |
| Ranked keyword search; returns doc_id, title, tags, snippet, score |
| Full Markdown content + metadata of one article |
| List all articles, optionally filtered |
| All tags with document counts |
| Re-scan |
| Document count, tag count, index age |
Resources
URI | Description |
| Human-readable index of every document |
| Full content of one document |
Prompts
Prompt | Description |
| Searches the KB, then instructs the model to answer only from the excerpts and cite doc_ids |
Environment variables
Variable | Default | Description |
|
| Root folder of Markdown documents |
|
| Server name shown to MCP clients |
Project structure
├── knowledge_base/ # sample corpus (replace with your own)
│ ├── engineering/*.md
│ ├── hr/*.md
│ └── product/*.md
├── src/mcp_knowledge_base/
│ ├── server.py # FastMCP server: tools, resources, prompts
│ └── index.py # document loading + TF-IDF-style search
├── examples/
│ └── demo_client.py # end-to-end demo over stdio
└── pyproject.tomlExtending it
Better search: swap
KnowledgeBaseIndexfor embeddings + a vector DB (the tool interface stays identical).Other sources: index Confluence/Notion exports — anything that ends up as Markdown works unchanged.
Freshness: run
reload_knowledge_baseon a schedule, or watchKB_DIRwith a filesystem watcher.
License
MIT — see LICENSE.
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
- AlicenseNot gradedqualityDmaintenanceEnables AI models to seamlessly access and query local markdown technical documentation files, providing automatic documentation context without explicit prompting.175ISC
- AlicenseNot gradedqualityDmaintenanceProvides direct access to local documentation files through simple search and overview tools, enabling LLMs to query project-specific markdown documentation without requiring vector databases or RAG pipelines.MIT
- AlicenseAqualityAmaintenanceEnables AI agents to search local Markdown documents using natural language, with automatic indexing and section-level retrieval.921MIT
- AlicenseNot gradedqualityDmaintenanceGives AI agents full-text search over any Markdown/MDX documentation folder.14MIT
Related MCP Connectors
Search and reason over your Obsidian-style Markdown vault, right from ChatGPT.
Serve a folder of Markdown notes as an MCP server: hybrid search, reading, and sourced answers.
Connect AI assistants to your GitHub-hosted Obsidian vault to seamlessly access, search, and analy…
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/Sachin-wish/mcp-knowledge-base-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server