Distributed search database with semantic indexing and MCP server
Project description
meshpop-db (meshdb)
Distributed full-text search engine for server meshes. SQLite FTS5 with optional semantic search via ChromaDB.
Quick Start
pip install meshpop-db
This installs meshdb CLI and meshdb-mcp MCP server.
MCP Server Setup
Add to Claude Code config (~/.claude/settings.json):
{
"mcpServers": {
"meshdb": { "command": "meshdb-mcp" }
}
}
If not on PATH:
{
"mcpServers": {
"meshdb": { "command": "python3", "args": ["-m", "meshdb_mcp_server"] }
}
}
MCP Tools Reference
| Tool | Parameters | Description |
|---|---|---|
meshdb_search |
query (required), servers, limit, type, dir |
Full-text search across all servers (244K+ indexed files) |
meshdb_find |
query (required), servers, limit |
Find files by filename pattern |
meshdb_read |
path, server (required) |
Read indexed file contents |
meshdb_status |
server |
Index status — file count, size, last updated |
meshdb_semantic |
query (required), limit |
Semantic code search via AI embeddings (ChromaDB) |
Search Examples (for AI)
meshdb_search(query="nginx config") # Find nginx configs across all servers
meshdb_search(query="ssl certificate", type="conf") # Search only config files
meshdb_find(query="docker-compose") # Find docker-compose files everywhere
meshdb_read(path="/etc/nginx/nginx.conf", server="v1") # Read specific file
meshdb_semantic(query="how does authentication work") # AI-powered semantic search
CLI Usage
# Index a directory
meshdb index /path/to/project
# Full-text search
meshdb search "nginx proxy"
# Smart search (AI-enhanced)
meshdb search --smart "how does the backup work"
# Find files by name
meshdb find "*.conf"
# Search with filters
meshdb search "database" --type py --server relay1
# Check index status
meshdb status
How It Works
- Indexing: Scans directories, extracts text from files, stores in SQLite FTS5
- Search: BM25 ranking with snippet highlighting
- Distributed: Each server maintains its own index, queries fan out to all
- Semantic (optional): ChromaDB embeddings for meaning-based code search
Interfaces
| Interface | Usage |
|---|---|
| CLI | meshdb search <query> |
| Python API | import meshdb; meshdb.api_search(query) |
| MCP Server | meshdb-mcp for Claude Code / AI tools |
Requirements
- Python 3.8+
- Zero external dependencies (uses built-in sqlite3 FTS5)
- ChromaDB optional for semantic search
License
MIT — MeshPOP
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file meshpop_db-1.0.3.tar.gz.
File metadata
- Download URL: meshpop_db-1.0.3.tar.gz
- Upload date:
- Size: 29.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
28e8a94a0bab47a9cc1f22389e3a9b700465f43bac8038aa30e1b316abef2417
|
|
| MD5 |
89ca888f745540054ef6b48a771047ba
|
|
| BLAKE2b-256 |
a1695ab70e833e41a19e6abe3d8a9e3ebd2cbda07431b6714c551ae12dda6b01
|
File details
Details for the file meshpop_db-1.0.3-py3-none-any.whl.
File metadata
- Download URL: meshpop_db-1.0.3-py3-none-any.whl
- Upload date:
- Size: 31.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
14566f47002989fba5797937d2ff10fd465b367377fbb9acbc6a3a7061477a6b
|
|
| MD5 |
1615566c7015d2641ce0aa93e55c97c1
|
|
| BLAKE2b-256 |
8c2303105f14950e3a73d45b3d8affe937c9687ef0f1697a3bbb4544a54089e6
|