Protocol
MCP Knowledge Base Server for AI Agents
Connect Claude Code, Codex, ChatGPT, Cursor, and other AI clients to a local, source-backed knowledge base through MCP.
Article packet
Concepts
Developers connecting AI agents to a shared knowledge base
8 min read
01
MCP gives AI clients a standard way to query knowledge, call tools, and retrieve resources.
02
A useful knowledge-base server preserves sources, citations, maintained answers, and freshness—not just chat history.
03
Wenlan connects coding tools locally and ChatGPT or Claude.ai through Streamable HTTP MCP, backed by the same source-aware knowledge system.
01
Quick answer
An MCP knowledge base server lets AI clients query durable project knowledge through a standard connection. The useful version does more than return remembered snippets: it keeps the original sources inspectable, returns citations or source IDs, and makes stale answers reviewable.
Wenlan provides that local-first route. Claude Code, Codex, Cursor, ChatGPT, Claude.ai, and other MCP clients can reach the same source-backed memories and maintained wiki pages without copying the whole knowledge base into every prompt.
- Use MCP when several AI clients need the same knowledge through one standard interface.
- Keep sources and citations when an answer must remain auditable after the source changes.
- Use a local server when private project documents and decisions should stay on your machine.
02
What MCP adds to a knowledge base
The Model Context Protocol lets servers expose tools, resources, and prompts to AI applications. A knowledge-base server can therefore offer search and retrieval without forcing each host application to invent a custom connector.
That boundary matters across Claude Code, Codex, ChatGPT, Cursor, and other clients. The client handles the current task; the server owns durable sources, retrieval, and the maintained knowledge that should survive one session or tool.
03
What an MCP knowledge-base server should expose
A useful server needs a narrow query path, inspectable sources, citations or stable source IDs, and a way to tell whether an answer is current. Write access should be explicit, and stale or contradictory knowledge should enter review instead of silently replacing a trusted source.
Wenlan exposes context, capture, recall, distillation, page access, review, forget, and diagnostic paths through its CLI, plugins, and MCP connector. Atomic memories retain provenance while maintained pages turn reviewed evidence into reusable answers.
04
MCP memory server vs knowledge base
An MCP memory server usually focuses on facts or context carried across sessions. An MCP knowledge base goes further: it connects those facts to documents, source boundaries, citations, maintained pages, and a refresh or review lifecycle.
The two can share one server. In Wenlan, small durable memories help agents recall context, while source-backed pages organize reviewed knowledge into human-readable answers. Neither layer makes the source code or original document unnecessary.
05
Local vs hosted knowledge base
Hosted servers can be convenient, but private documents and project decisions leave your machine. A local knowledge base takes more setup while keeping its store, sources, and review trail under your control.
Wenlan uses a local daemon and local MCP connector for coding tools. Its optional Streamable HTTP route is for web clients such as ChatGPT and Claude.ai; enabling remote access is a separate choice rather than the default storage model.
06
Install path
Claude Code and Codex have Wenlan plugin paths. For local MCP clients, run Wenlan setup, then use wenlan connect <client> to write the client-specific configuration.
ChatGPT and Claude.ai use Streamable HTTP MCP. The desktop app's Remote Access panel creates the URL and shows the web-client setup steps.
MCP client setup
npx -y wenlan setup
~/.wenlan/bin/wenlan connect cursor
~/.wenlan/bin/wenlan connect codex
# or: claude-desktop, vscode, gemini07
Verify the MCP knowledge-base route
Do not trust a knowledge-base connection because the client merely reports that an MCP server is configured. Test retrieval, provenance, and cross-client consistency with a harmless source before relying on it for real work.
- List the server tools from one MCP client and confirm the expected read path is available.
- Query one harmless source and inspect the citation or source ID behind the answer.
- Change the source, then verify that stale knowledge is refreshed or enters review.
- Confirm a second client can retrieve the same maintained answer without copying the source into its prompt.
Connect a source-backed knowledge base
Install Wenlan, connect one MCP client, and verify retrieval, citations, freshness, and cross-client access before using it for real work.
FAQ