Skip to main content
Glama
gabor-trainer

knowledge-base-mcp

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 sync

Run

uv run knowledge-base-mcp                      # stdio transport (default)
uv run knowledge-base-mcp --transport streamable-http --port 8000

Or inspect it interactively with the MCP Inspector:

uv run mcp dev knowledge_base_mcp/server.py

Test

uv run pytest                      # unit + integration, gated at 90% coverage
uv run pytest tests/e2e --no-cov     # e2e: spawns the real server subprocess over stdio

uv 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 pyright
Install Server
A
license - permissive license
A
quality
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

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

  • F
    license
    A
    quality
    C
    maintenance
    Provides MCP-compatible AI agents with read access to a LifeOS knowledge base, exposing identity, preferences, projects, wiki, skills, and rules via tools and resources.
    Last updated
    17
  • F
    license
    -
    quality
    C
    maintenance
    Exposes tools for semantic search and RAG-based Q\&A from a local knowledge base, along with resources and prompt templates.
    Last updated

View all related MCP servers

Related MCP Connectors

  • Your company's brain for AI agents. Cited, permission-aware knowledge across every system.

  • Shared knowledge base for AI agents. Semantic search across agents, no setup required — just a URL.

  • End-to-end agent-managed company brain. Docs, diagrams, plans, Knowledge Graph. Lean & affordable.

View all MCP Connectors

Latest Blog Posts

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