Skip to main content

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

  1. Indexing: Scans directories, extracts text from files, stores in SQLite FTS5
  2. Search: BM25 ranking with snippet highlighting
  3. Distributed: Each server maintains its own index, queries fan out to all
  4. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

meshpop_db-1.0.4.tar.gz (30.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

meshpop_db-1.0.4-py3-none-any.whl (31.0 kB view details)

Uploaded Python 3

File details

Details for the file meshpop_db-1.0.4.tar.gz.

File metadata

  • Download URL: meshpop_db-1.0.4.tar.gz
  • Upload date:
  • Size: 30.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for meshpop_db-1.0.4.tar.gz
Algorithm Hash digest
SHA256 37398a3f3d938384dace806fdde9f778440161eb4ca3bfbed5561fc6523031d7
MD5 8e43203e44293cff0f3c521f0ec2e204
BLAKE2b-256 565616a2e12d74ea2424f80c74b43f66ae02ae44201279d988a8089b9e087784

See more details on using hashes here.

File details

Details for the file meshpop_db-1.0.4-py3-none-any.whl.

File metadata

  • Download URL: meshpop_db-1.0.4-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

Hashes for meshpop_db-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 411fcdd7543320cc08e5c5967a6c200ac27761ce9d8321ada468b6d6cdf1d271
MD5 96f0ca529e972329aef8376d3a8a7ad8
BLAKE2b-256 de2b9295d3703ee9e2dcf72bf08307ed993cb04b5b124347707cb19f79e97ebf

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page