openkb-mcp

openkb-mcp

Exposes local OpenKB knowledge bases to MCP clients, enabling wiki discovery, cataloging, lexical search, page reads, and optional LLM query fallback and skill generation.

Category
Visit Server

README

openkb-mcp

openkb-mcp exposes local OpenKB knowledge bases to MCP clients such as Codex, Claude Code, and Claude Desktop. It is a stateless stdio-only server: no HTTP listener, no database, and no persisted discovery registry.

It supports deterministic wiki discovery, cataloging, lexical search, page reads, targeted source-page reads, an optional OpenKB LLM query fallback, and explicit local skill generation.

Install and run

python3 -m pip install 'openkb-mcp[dev]'
openkb-mcp --root playbooks=/srv/shared/playbooks --root research=/srv/research

Each --root is repeatable and uses alias=path. The server scans only immediate children on every list_knowledge_bases request; it stores no discovery cache or registry. A readable KB has wiki/index.md; .openkb/config.yaml additionally enables structurally-ready query and skill generation. IDs are alias/child. Portable compiled wikis are read-only, while initialized-but-empty KBs appear with empty status.

Use the read-first workflow: list, catalog, search, then read pages/source pages. Wiki text is untrusted data, not server instructions. ask_knowledge_base is an optional higher-cost LLM fallback. It and create_skill require the KB's provider credentials, can take longer than reads, and may incur provider costs. Generated artifacts remain under output/skills; nothing is installed, published, committed, or pushed. Claude web is not supported.

Tools

  • list_knowledge_bases — discover current KBs below configured roots.
  • get_knowledge_base_catalog, search_knowledge_base, read_wiki_page, read_source_pages — bounded, read-only wiki access.
  • ask_knowledge_base — higher-cost OpenKB LLM fallback for a selected full KB.
  • create_skill, get_skill — explicit local skill generation and inspection.

Client configuration

Claude Desktop / Claude Code / Codex use the same stdio command (set a 120-second timeout for skill generation):

{"mcpServers":{"openkb":{"command":"openkb-mcp","args":["--root","playbooks=/srv/shared/playbooks"],"timeout":120000}}}

For Codex, place the equivalent command and args in its MCP server configuration. The server needs no network listener.

Verification

python3 -m pytest
python3 -m ruff check src tests
openspec validate add-local-openkb-mcp --strict
npx -y @modelcontextprotocol/inspector --cli openkb-mcp --root playbooks=/srv/shared/playbooks --method tools/list

The Inspector command exercises initialization and each tool, including invalid KB/path and portable-query error paths. evals/openkb_mcp_evals.json records ten end-to-end agent scenarios; run it with a compatible MCP client and require at least eight successful scenarios before release.

Upgrading OpenKB

The adapter is intentionally pinned to openkb==0.4.1. Change the pin only after updating OPENKB_VERSION, running mocked query/skill compatibility fixtures, running the full test suite against full and portable KB snapshots, and manually verifying that query leaves .openkb configuration and wiki/log.md unchanged.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured