astra-knowledge-base-mcp
MCP server for managing and searching multi-tenant knowledge bases backed by SQLite with FTS5, enabling AI agents to persist and retrieve content via full-text search.
README
astra-knowledge-base-mcp
MCP (Model Context Protocol) server for managing and searching multi-tenant knowledge bases.
Part of Astra AI Agent Infrastructure
Overview
Astra Knowledge Base MCP provides AI agents with persistent, searchable knowledge bases backed by SQLite + FTS5 — zero external dependencies, one file per deployment.
Each knowledge base is an isolated namespace with full-text search. Content is auto-chunked on ingestion using recursive text splitting.
Prerequisites
- Python 3.11+
- uv — Python package manager (
pip install uv)
Setup
1. Install dependencies
uv sync
2. Start
uv run server.py
The database file is created at ~/.astra/knowledge-base.db by default. Override with the ASTRA_KB_PATH environment variable.
Configuration
| Variable | Default | Description |
|---|---|---|
ASTRA_KB_PATH |
~/.astra/knowledge-base.db |
Path to the SQLite database file |
Usage
MCP Tools
| Tool | Description |
|---|---|
kb_list |
List all knowledge bases with enable/disable status |
kb_create |
Create a new empty knowledge base |
kb_delete |
Permanently delete a knowledge base and all its content |
kb_enable |
Enable a knowledge base (include in search results) |
kb_disable |
Disable a knowledge base (exclude from search) |
kb_add |
Add text content to a knowledge base (auto-chunked) |
kb_search |
Search across enabled (or specified) knowledge bases |
Registering in Hermes Agent
Add to your Hermes config.yaml:
mcp_servers:
astra-knowledge-base:
command: /path/to/astra-knowledge-base-mcp/run.sh
enabled: true
Then restart Hermes Agent. The tools (kb_list, kb_search, etc.) become available automatically.
Architecture
AI Agent (Hermes)
│ MCP stdio protocol
▼
astra-knowledge-base-mcp (Python, uv run)
│ sqlite3 (stdlib)
▼
SQLite (.db file — ~/.astra/knowledge-base.db)
├── kb_registry ← KB metadata & status
├── chunks ← Content storage
└── chunks_fts ← FTS5 virtual table (auto-synced)
Agent Guide
See AGENTS.md for AI-agent-oriented documentation (entry points, workflows, Hermes integration).
Related
- astra-aiagent-infra — ecosystem portal
- Hermes Agent — AI agent framework
- MCP — Model Context Protocol
License
MIT — see LICENSE.
CI/CD: coming soon — see astra-aiagent-infra for ecosystem-wide pipeline plans.
<p align="center"> <a href="https://star-history.com/#alrcatraz/astra-knowledge-base-mcp&Date"> <picture> <source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/svg?repos=alrcatraz/astra-knowledge-base-mcp&type=Date&theme=dark" /> <source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/svg?repos=alrcatraz/astra-knowledge-base-mcp&type=Date" /> <img alt="Star History Chart" src="https://api.star-history.com/svg?repos=alrcatraz/astra-knowledge-base-mcp&type=Date" width="600" /> </picture> </a> </p>
Recommended Servers
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.
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.
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.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
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.
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.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
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.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.