Skip to content
MCP server
Registry

PocketDex MCP Server

Dependency-free local code index over MCP: FTS5 search, ranked snippets, per-project DBs.

PocketDex scores 64 (Good), licensed MIT and written in Python. It installs as a local process. It does not declare tools yet. Filed under Databases, Developer tools, AI and memory. GitHub shows 1 stars. Install configs are generated for 12 clients. Being listed in the registry is not the same as being vendor-official.

by sujalkumar1029-gifMITPython1 stars
Trust score
64Good
Trust score 64 of 100, Good

Good trust

64 of 100 from six public signals. Nobody can buy a point.

  • Listed in the official MCP registry.
  • OSI-style license: mit.
How we score trust
Scorecard

License, quality and maintenance

How grades work
Trust breakdown

Where the 64 comes from

22 + 20 + 1 + 10 + 4 + 7 = 64. Each factor is capped, so no single signal can carry a listing.

Registry22 / 30

Active in the official MCP registry, plus a known vendor namespace.

Registry: 22 of 30 points.
Maintenance20 / 20

How recently the repository saw a commit or release.

Maintenance: 20 of 20 points.
Popularity1 / 20

GitHub stars and weekly downloads, on a log scale.

Popularity: 1 of 20 points.
License10 / 10

A clear, OSI-style open-source license.

License: 10 of 10 points.
Security4 / 10

Not archived, a secure install path, a pinned version.

Security: 4 of 10 points.
Docs7 / 10

A real summary, a README with depth, listed tools.

Docs: 7 of 10 points.

Install

Pick your client, copy the config, paste it in.

Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.

~/Library/Application Support/Claude/claude_desktop_config.json
{  "mcpServers": {    "sujalkumar1029-gif-pocketdex-mcp": {      "command": "uvx",      "args": [        "pocketdex-mcp"      ]    }  }}

Environment variables

This server does not declare environment variables.

Tools show up when the registry metadata or the repository README lists them. Public READMEs are read directly. A GitHub token is used only when one is already configured.

About

PocketDex MCP

tests license python Glama M8ven Score

Also listed in the official MCP Registry.

A tiny local code index for AI agents, served over MCP. One Python file, no dependencies, no background server, no vectors — just SQLite FTS5.

Ask an agent "where are badge rules calculated?" and it gets a file path, a line range, and a short highlighted snippet instead of opening five files.

PocketDex terminal demo

Why

An agent exploring a repo opens file after file, and every file costs context. PocketDex indexes the folder once, then answers search with the passage the agent needs.

Measured on a 34-file Flask app:

QueryResult sizeapp.py alone
parse_amount_cents~120 tokens~4,442 tokens
badge rules~69 tokens~4,442 tokens
sqlite connection~285 tokens~4,442 tokens

Index time: 0.06 s. Index size: ~0.5 MB. Query latency: 8–29 ms. (Token counts are characters / 4, an approximation.)

Why it is different

PocketDex MCPShared code indexgrep / rg
DependenciesNone (stdlib only)Service + clientNone
SetupOne file, no installInstall + run serverNone
StorageOne DB per projectOften one shared indexNone
ResultsRanked passages + linesRanked passagesRaw matching lines
Context costLowLowLow, but no ranking
Best at20–500 filesLarge repos / corporaOne known symbol

The important design choice is isolation. Each project gets its own database inside PocketDex's folder:

PocketDex/
├── pocketdex.py
├── data/projects/
│   ├── my-app-3f2a1b9c.db
│   └── other-api-7d1e0c44.db
├── tests/
└── ARCHITECTURE.md
  • Nothing is written into the project being indexed.
  • Two projects never share a database, so results cannot leak across them.
  • Deleting a .db file removes that project's index completely.
  • There is no central registry that can drift out of sync.

Override the location with --data-dir or POCKETDEX_DATA. Run from a clone, data stays in data/projects/ (gitignored). Installed from PyPI, it uses ~/.local/share/pocketdex/projects/, so upgrading or clearing the uv cache never touches your index.

rg is still the right tool for one known symbol. PocketDex is for exploring an unfamiliar repo without paying for whole files.

Install

The package is on PyPI. Run it without a permanent install:

uvx pocketdex-mcp --help
uvx pocketdex-mcp index ~/Projects/my-app
uvx pocketdex-mcp serve

Or install it once:

pip install pocketdex-mcp
pocketdex --help

uvx caches the package, so subsequent runs are instant. If your MCP client does not inherit your shell PATH, use the absolute path to uvx in the config below.

Prefer a clone? It is one file with no dependencies:

git clone https://github.com/sujalkumar1029-gif/pocketdex-mcp.git
cd pocketdex-mcp
python3 pocketdex.py --help

Requirements: Python 3.10+ and SQLite built with FTS5 (standard in CPython builds).

Docker

Build the stdio server into a small image:

docker build -t pocketdex-mcp .
docker run --rm -i pocketdex-mcp

The index lives under /app/data inside the container. To keep it between runs, use a named volume:

docker run --rm -i -v pocketdex-data:/app/data pocketdex-mcp

Quick start

# index or refresh a project (incremental)
python3 pocketdex.py index ~/Projects/my-app

# search
python3 pocketdex.py search "parse_amount_cents"
python3 pocketdex.py search "badge rules" --limit 5
python3 pocketdex.py search "connect" --path-prefix src/db

# inspect every project's separate index
python3 pocketdex.py stats

# MCP server (what the agent runs)
python3 pocketdex.py serve

search without --project uses the most recently indexed project. Pass --project ~/Projects/other when several are indexed.

MCP configuration

Add this to your MCP client's config (for example ~/.gemini/config/mcp_config.json for Antigravity):

{
  "mcpServers": {
    "pocketdex": {
      "command": "uvx",
      "args": ["pocketdex-mcp", "serve"]
    }
  }
}

If you run from a clone instead, use "command": "python3" and "args": ["/absolute/path/to/pocketdex.py", "serve"].

Tools exposed:

ToolPurpose
index_projectIndex or refresh one folder into its own DB. Incremental.
searchKeyword/identifier search in one project, with snippets.
statsEvery indexed project, its DB path, file/chunk counts, size.

Hosted Arcade gateway (optional)

For agent workflows that combine issue triage with local code search, a hosted Arcade gateway named PocketDex is also available:

https://api.arcade.dev/mcp/gw_3MlZXEarW1Uxi4nJcDA8O9fRNkL

It bundles six read-only Linear/GitHub tools for weekly triage: issue listing, issue querying, issue details, repository details, and Linear document search. Add it to any MCP client that supports Streamable HTTP + OAuth.

In ChatGPT: Plugins → Add custom MCP server, name it PocketDex, paste the URL above, set authentication to OAuth, then Create as a plugin.

In OpenCode:

opencode mcp add pocketdex --global --url https://api.arcade.dev/mcp/gw_3MlZXEarW1Uxi4nJcDA8O9fRNkL

This gateway is separate from the local server above. Use pocketdex serve to expose PocketDex's own index_project, search, and stats tools.

Reproduce the numbers

python3 benchmark.py ~/Projects/my-app

It indexes the folder, prints index time and database size, then measures the approximate token cost of a few queries against the total source size.

How it works

  • Walks the folder, skipping .git, node_modules, .venv, dist, build output, lockfiles, hidden folders, files over 512 KB, and binaries.
  • Splits files into 40-line chunks with 12 lines of overlap.
  • Stores chunks in SQLite FTS5 with _ as a token character, so parse_amount_cents stays one searchable token.
  • BM25 ranking, at most two results per file, snippets capped at 12 tokens of context.
  • Re-indexing compares mtime_ns and size; unchanged files are skipped.

ARCHITECTURE.md explains the data model, indexing pipeline, ranking, MCP lifecycle, failure modes, and extension points.

Limits (on purpose)

  • No embeddings / vector search. Keyword + prefix matching only. Code search is dominated by exact identifiers.
  • No regex tool. Add one only if a real need appears.
  • Small-to-medium projects. A 20–500 file range is the target; a multi-GB monorepo belongs on a dedicated search service.
  • No file watching. Call index_project after large edits; unchanged files are cheap to skip.
  • Plaintext index. Treat the data folder with the same care as the source it indexes.

Tests

python3 -m pip install pytest
python3 -m pytest -q

14 tests: indexing, ignored dirs, binary skip, incremental re-index, deletion, path filters, stats, per-project isolation, latest-project selection, data-dir selection for clones vs installed packages, and a real MCP stdio handshake (initialize → tools/list → tools/call).

Status

Early (0.x). The MCP contract and CLI are stable; internals may change. Issues and pull requests are welcome.

If PocketDex saves you tokens, a star helps other agent builders find it.

License

MIT — see LICENSE.

Frequently asked questions

What is PocketDex MCP Server?

Dependency-free local code index over MCP: FTS5 search, ranked snippets, per-project DBs.

How do I install PocketDex MCP Server in Claude Desktop, Cursor, or VS Code?

Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. PocketDex MCP Server runs locally from the PyPI package pocketdex-mcp with the command uvx pocketdex-mcp.

Is PocketDex MCP Server free and open source?

Yes. PocketDex MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.

Does PocketDex MCP Server support remote (HTTP) connections?

No remote endpoint is listed for PocketDex MCP Server. It runs locally on your machine over stdio, started by your MCP client.

How is PocketDex MCP Server's trust score calculated?

PocketDex MCP Server scores 64 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.

Reviews

No reviews yet

—Be the first to review

5 star0 reviews at 5 stars
4 star0 reviews at 4 stars
3 star0 reviews at 3 stars
2 star0 reviews at 2 stars
1 star0 reviews at 1 stars

No published reviews yet. Used it? Tell the next person how it went.

Add badge to your README

Paste either snippet into the repository README. The image links to this listing.

Listed on MCPpedia

Top 5 MCP servers

Daily or weekly. Confirm by email, unsubscribe any time.

How often

Manage this listing

Claim this server