knowledge-base-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-base-mcpwhat are the latest updates in artificial intelligence?"
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-base-mcp
An MCP server exposing a knowledge base to LLM clients through tools, resources, and prompts.
Layout
knowledge_base_mcp/
├── __init__.py
├── __main__.py # `python -m knowledge_base_mcp`
├── context.py # AppContext + app_lifespan (constructs the store)
├── server.py # FastMCP instance, CLI entry point (main)
├── tools.py # @mcp.tool() definitions (add_document, search)
├── resources.py # @mcp.resource() definitions (get_document)
├── prompts.py # @mcp.prompt() definitions
└── store/ # pluggable persistence layer
├── __init__.py # create_store() factory
├── base.py # KnowledgeBaseStore Protocol
└── sqlite.py # SQLite reference implementation
tests/
├── conftest.py # shared anyio_backend fixture
├── unit/ # SqliteKnowledgeBaseStore, in isolation
├── integration/ # tools/resources via an in-memory MCP session
└── e2e/ # real subprocess over stdio (not in the default run)See docs/specs/knowledge-base-store.md for the design and docs/adrs/ for why things are the way they are.
Related MCP server: Internal Documentation Search
Setup
uv syncRun
uv run knowledge-base-mcp # stdio transport (default)
uv run knowledge-base-mcp --transport streamable-http --port 8000Or inspect it interactively with the MCP Inspector:
uv run mcp dev knowledge_base_mcp/server.pyTest
uv run pytest # unit + integration, gated at 90% coverage
uv run pytest tests/e2e --no-cov # e2e: spawns the real server subprocess over stdiouv run pytest fails outright if coverage drops below 90% (--cov-fail-under=90 in pyproject.toml). tests/e2e is excluded from that default run (see testpaths) since it's slower and its coverage isn't collected in-process.
Lint / type-check
uv run ruff check .
uv run pyrightThis 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
- 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/gabor-trainer/knowledge-base-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server