Knowledge Base MCP 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., "@Knowledge Base MCP Serversearch for recent AI news"
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.
π Other languages: δΈζ Β· ζ₯ζ¬θͺ
Knowledge Base β Self-Building MCP Server
A personal technical knowledge base that builds itself: a container on your host collects from GitHub Trending, AI news RSS (incl. Anthropic via HTML scraping), and arXiv daily, distills the content into structured wiki pages with an LLM, and an MCP server serves semantic search + an interactive knowledge graph over it.
Inspired by mufans/knowledge-base and the Karpathy LLM Wiki method.
How it works
A1 host (single container: knowledge-mcp) β fully local, no GitHub in daily loop
ββ collect thread (UTC 16:00): scripts/collect.py β /data/kb-self/raw/inbox/
ββ distill thread (UTC 16:45): scripts/distill.py β /data/kb-self/wiki/
β (LLM key lives ONLY in the container env, never touches GitHub)
ββ serves /mcp (Streamable HTTP, optional Bearer auth) over the local wiki
ββ serves /graph (interactive knowledge graph visualization in browser)Security note: collection and distillation both run entirely on your A1 machine. GitHub only hosts the source code and builds the Docker image β it never sees collected data or the LLM API key.
Repository layout
.github/workflows/
build.yml # build arm64 image β ghcr.io/zhengr/knowledge-mcp
Dockerfile
docker-compose.yml
knowledge-graph.html # interactive knowledge graph (served at /graph)
scripts/
collect.py # free collectors (GitHub + AI news RSS + Anthropic HTML + arXiv)
distill.py # LLM β wiki pages (OpenAI-compatible API)
server.py # MCP server (search_kb / get_entity / list_recent) + /graph route
pyproject.toml
raw/inbox/andwiki/are generated locally on the host at runtime β they are NOT stored in the GitHub repo.
Environment variables
Variable | Default | Description |
|
| Knowledge base root (contains |
|
|
|
|
| Bind address |
|
| Listen port |
| (empty) | If set, requires |
|
| LLM endpoint for distillation |
| (empty) | LLM API key (if empty, distill thread skips) |
|
| LLM model name |
Deploy (single container)
docker run -d --name knowledge-mcp -p 8000:8000 \
-e KNOWLEDGE_BASE_PATH=/data/kb-self \
-e MCP_AUTH_TOKEN=your-secret-token \
-e LLM_API_BASE=https://api.openai.com/v1 \
-e LLM_API_KEY=sk-... \
-e LLM_MODEL=gpt-4o-mini \
-v /opt:/data:rw \
ghcr.io/zhengr/knowledge-mcp:latestThe container runs three things in one process:
collect thread β daily UTC 16:00, writes
raw/inbox/distill thread β daily UTC 16:45, calls LLM β generates
wiki/MCP server β serves
/mcp(search) +/graph(visualization) on port 8000
Endpoints
Path | Auth | Description |
| Bearer token | MCP streamable-http endpoint (search_kb, get_entity, list_recent) |
| None | Interactive knowledge graph (force-directed graph in browser) |
Connect a client (Claude Code / Cursor)
{
"mcpServers": {
"knowledge": {
"url": "http://<host>:8000/mcp",
"headers": { "Authorization": "Bearer your-secret-token" }
}
}
}View the knowledge graph
Open http://<host>:8000/graph in any browser. The graph pulls wiki data
from /mcp in real-time (via browser fetch). Features:
Force-directed layout β nodes auto-arrange by tag co-occurrence
Click a node β slide-out detail panel (title, score, tags, summary)
Search β highlight matching nodes/labels in real-time
Zoom & pan β scroll to zoom, drag background to pan
Filter β show only entities (projects) or sources (news/papers)
Tag cloud β click a tag to highlight all connected nodes
Tools
search_kb(query, category?, limit?)β full-text search over the wikiget_entity(name)β fetch one wiki pagelist_recent(limit?, days?, min_score?)β recently updated pages
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
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/zhengr/knowledge-base'
If you have feedback or need assistance with the MCP directory API, please join our Discord server