mcp-knowledge-server
Click on "Deploy 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-servershow me the current state summary and next recommended action"
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-server
An MCP server that exposes a small, version-controlled knowledge base as tools any MCP-compatible agent (Claude Desktop, Claude Code, another agent) can call at runtime — plus a deterministic evaluation harness that verifies those tools.
It demonstrates the pattern behind agentic tooling: an agent shouldn't re-read and re-reason over raw files every time; it should call self-describing tools that return live state or run checks, through a standard protocol, with results that are reproducible and verifiable.
This is a public, generalized extract of tooling I built for a private knowledge-management project. All data in
data/is synthetic sample data.
How it works
flowchart LR
A["AI agent<br/>(Claude Desktop / Code)"] -->|"calls via MCP"| S
subgraph S["MCP server (this repo)"]
direction TB
T1["get_state — read"]
T2["next_action — read"]
T3["validate_schemas — verify"]
T4["check_links — verify"]
end
S -->|"reads / checks"| F[("Versioned files<br/>identity.yaml · state.yaml · log/")]The files stay the single source of truth; the server is a live doorway that reads and verifies them — it never copies the data.
Related MCP server: data-olympus MCP server
The knowledge base
A tiny, git-tracked system with the shape real ones have:
data/identity.yaml— near-immutable identity of an asset (validated by a JSON Schema).data/state.yaml— the current-state snapshot, referencing the log by ID.data/log/— an append-only event log; each entry has a stable ID (EVT-####).
The tools
Tool | Kind | What it does |
| read | Merges identity + state into one live summary (and computes usage-to-target). |
| read | Returns the next recommended action and open pending items. |
| verify | Validates each data file against its JSON Schema; returns the exact failing fields. |
| verify | Confirms every referenced ID ( |
The two verify tools are deterministic: same input, same verdict, every time —
no model in the loop. That is what makes them usable as a fair, automatable check.
The evaluation harness
tests/test_verification.py follows the pattern used to build reinforcement-learning
environments for coding agents:
Seed a known broken state (an invalid field, a dangling reference).
Assert the tools catch it.
Apply the golden reference solution (fix the value, create the missing document).
A deterministic verifier confirms the tools report healthy again.
flowchart LR
B["1 · Seed a broken state<br/>(invalid field, dangling ref)"] --> G["2 · Apply the golden solution<br/>(fix value, create missing doc)"] --> V["3 · Deterministic verify ✓<br/>(tools report healthy)"]It runs on every push via GitHub Actions (.github/workflows/ci.yml).
Run it
pip install -r requirements.txt
python server.py # run the MCP server over stdio
mcp dev server.py # or open the MCP Inspector to click each tool
pytest -v # run the evaluation harnessTo use it from Claude Desktop, add to claude_desktop_config.json:
{
"mcpServers": {
"knowledge-base": { "command": "python", "args": ["/absolute/path/to/server.py"] }
}
}Stack
Python · official MCP SDK (mcp, MCPServer) · PyYAML · jsonschema · pytest · GitHub Actions.
This server cannot be deployed
Maintenance
Related MCP Connectors
Guarded MCP server for agent-readable business truth, provenance, readiness, and discovery.
Read-only MCP server that answers questions about turva.dev from its published data. Five tools return JSON: the service catalog with prices, contact and operator details, engagement principles and dated agent-readiness and security evidence with verification links. Connect over Streamable HTTP. You need no API key. The server does not scan other websites or run audits.
Agent-native MCP server over the public saagarpatel.dev corpus. Read-only, stateless.
- UnifAPIOAuthcom.unifapi
Hosted MCP server for live public-data APIs and Skills for AI agents.
Related MCP Servers
- FlicenseAqualityCmaintenanceProvides MCP-compatible AI agents with read access to a LifeOS knowledge base, exposing identity, preferences, projects, wiki, skills, and rules via tools and resources.17-
- AlicenseAqualityAmaintenanceProvides a single-writer MCP server for a governance-grade knowledge base of markdown documents with version control and query capabilities.49412 PyPI27Apache 2.0
- AlicenseNot gradedqualityBmaintenanceMCP server that gives AI coding agents a git-backed markdown wiki to read and update, enabling search, read, write, verify, ingest, promote, and lint operations on versioned knowledge documents with schema validation, staleness tracking, and contradiction detection.4MIT
- FlicenseNot gradedqualityDmaintenanceProvides structured search, schema-validated writes, and linting for a markdown knowledge base, enabling agents to operate the wiki over a single streamable-HTTP MCP endpoint.1-