Metadata-Version: 2.4
Name: mcpilot
Version: 0.1.1
Summary: Context-aware MCP server advisor — recommends the right MCP servers for your project and explains why.
Project-URL: Homepage, https://github.com/yahiaklk/mcpilot
Project-URL: Repository, https://github.com/yahiaklk/mcpilot
Project-URL: Issues, https://github.com/yahiaklk/mcpilot/issues
Project-URL: Changelog, https://github.com/yahiaklk/mcpilot/releases
Author-email: Yahia Khallouk <yahia.khallouk@gmail.com>
License: MIT License
        
        Copyright (c) 2026 yahiaklk
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
License-File: LICENSE
Keywords: advisor,claude,embeddings,fastmcp,llm,mcp,model-context-protocol,semantic-search
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=3.12
Requires-Dist: duckdb>=1.0
Requires-Dist: fastmcp>=3.2.0
Requires-Dist: requests>=2.33.0
Requires-Dist: sentence-transformers>=3.0
Requires-Dist: torch
Description-Content-Type: text/markdown

# mcpilot

[![mcpilot MCP server](https://glama.ai/mcp/servers/yahiaklk/mcpilot/badges/card.svg)](https://glama.ai/mcp/servers/yahiaklk/mcpilot)

Context-aware MCP server advisor. Tells you what to install for your specific project — and why.

## The problem

[Glama](https://glama.ai) has 19,000+ MCP servers. You have a project. Nobody bridges the gap.

LLMs asked directly hallucinate servers that don't exist and recommend from stale training data. Directories give you search, not advice.

mcpilot fills the **selection under context** gap: not "here are 19,000 options" but "for your specific project, right now, here's what you need and why."

## The two moments nobody is serving

**Project start:** "I'm building a Python data pipeline with DuckDB and FastAPI" → what do I install right now

**Mid-project:** "I just added an auth layer / I need to handle PDF ingestion" → what do I add now that I've reached this point

The second moment is more valuable. At project start, people can Google. Mid-project they're in flow.

## Three tools

```
recommend_for_project(description)
  → top MCP servers for your stack with rationale

recommend_next(current_stack, new_context)
  → what to add as your project evolves

explain_why(server_name, project_description)
  → why a specific server fits your project
```

## Install

**Prerequisites:** [uv](https://docs.astral.sh/uv/)

```bash
git clone https://github.com/yahiaklk/mcpilot
cd mcpilot
uv sync
```

Build the index (first run, ~30s):

```bash
uv run python -m mcpilot.indexer
```

## Add to Claude Code

```bash
claude mcp add --scope user mcpilot -- uv run --directory /path/to/mcpilot python -m mcpilot.server
```

## Add to Claude Desktop

Add to your `claude_desktop_config.json`:

```json
{
  "mcpServers": {
    "mcpilot": {
      "command": "uv",
      "args": ["run", "--directory", "/path/to/mcpilot", "python", "-m", "mcpilot.server"]
    }
  }
}
```

## Usage

Once connected, ask your AI assistant:

```
recommend_for_project("Python FastAPI backend with PostgreSQL and JWT auth")

recommend_next("github,filesystem", "adding Stripe payments and PDF invoices")

explain_why("postgres", "multi-tenant SaaS with row-level security")
```

## How it works

- Parses [awesome-mcp-servers](https://github.com/punkpeye/awesome-mcp-servers) (2000+ curated servers)
- Embeds descriptions with `all-MiniLM-L6-v2` (local, no API cost)
- Stores in DuckDB, queries with cosine similarity
- Template-based rationale — grounded in the registry, not hallucinated

## Rebuild the index

```bash
uv run python -m mcpilot.indexer --force
```

## Docker

Multi-stage image with the embedding model + DuckDB index baked in — no runtime network dependency.

```bash
docker build -t mcpilot:0.1.0 .
docker run --rm -i mcpilot:0.1.0   # stdio transport, for local MCP clients
```

Wire into Claude Desktop:

```json
{
  "mcpServers": {
    "mcpilot": {
      "command": "docker",
      "args": ["run", "--rm", "-i", "mcpilot:0.1.0"]
    }
  }
}
```

Non-root user (`uid=10001`), pinned Python 3.12, deps resolved from `uv.lock`, model cached under `/app/.hf_cache` with `HF_HUB_OFFLINE=1` at runtime.

## Stack

Python · FastMCP · DuckDB · sentence-transformers · uv

## License

[MIT](LICENSE)
