Knowledge Base Server
БесплатноНе проверенEnables semantic search over knowledge-base articles and listing of sample support tickets using MCP tools.
Описание
Enables semantic search over knowledge-base articles and listing of sample support tickets using MCP tools.
README
This folder contains the MCP server and unstructured-text ingestion pipeline for the support-ticket triage demo.
The server exposes knowledge-base articles and sample tickets through MCP tools. The search tool is backed by a local SQLite vector index built from Markdown files in data/kb/.
Files
mcp/
├── main.py # FastMCP server
├── pipeline.py # Ingest, chunk, embed, and store KB documents
├── vector_store.py # SQLite vector search helpers
├── models.py # Pydantic models returned by tools
└── data/
├── kb/ # Source knowledge-base articles
├── tickets/ # Sample support tickets
└── index.db # Generated SQLite index
Tools
The MCP server currently exposes:
search_kb(query: str) -> list[Chunk]Semantic search over indexed KB chunks.get_article(name: str) -> strFetch a full KB article by filename.list_tickets(status: str) -> list[Ticket]List sample tickets by status.
Setup
Install dependencies:
uv sync
Set the Gemini API key used for embeddings:
export GEMINI_API_KEY="..."
Build The Index
Run the ingestion pipeline:
uv run python pipeline.py
The pipeline:
- Reads Markdown files from
data/kb/. - Normalizes and chunks each document.
- Creates embeddings with
gemini-embedding-001. - Stores chunks and embeddings in
data/index.db. - Uses SHA-256 hashes to skip unchanged documents on reruns.
Run The Server
Start the MCP server over stdio:
uv run python main.py
Most clients, including the ADK agent in ../agent, launch this command as a subprocess instead of running it manually.
Client Config Snippet
Example stdio client configuration:
{
"mcpServers": {
"kb-server": {
"command": "/Users/vianel/Workspace/samples/mcp/.venv/bin/python",
"args": ["/Users/vianel/Workspace/samples/mcp/main.py"],
"env": {
"GEMINI_API_KEY": "${GEMINI_API_KEY}"
}
}
}
}
Smoke Tests
Rebuild the index and check that reruns skip unchanged files:
uv run python pipeline.py
uv run python pipeline.py
Then run the agent-side discovery script from ../agent:
cd ../agent
uv run python discovery.py
You should see the MCP tools discovered by the client.
Установка Knowledge Base Server
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/vianel/mcp-pocFAQ
Knowledge Base Server MCP бесплатный?
Да, Knowledge Base Server MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Knowledge Base Server?
Нет, Knowledge Base Server работает без API-ключей и переменных окружения.
Knowledge Base Server — hosted или self-hosted?
Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.
Как установить Knowledge Base Server в Claude Desktop, Claude Code или Cursor?
Открой Knowledge Base Server на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
GitHub
PRs, issues, code search, CI status
автор: GitHubFilesystem
Secure file operations with configurable access controls.
Memory
Knowledge graph-based persistent memory system.
Template MCP Server
A CLI tool to create a new Model Context Protocol server project with TypeScript support, dual transport options, and an extensible structure
автор: mcpdotdirectCompare Knowledge Base Server with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории development
