Skip to main content
Glama
prospector-mcp

prospector-mcp

by athoune

Prospector MCP Server

An MCP (Model Context Protocol) server that exposes Prospector — the Python static analysis tool — through its native Python API.

Features

  • Run Prospector on a single file or an entire directory.

  • Return structured, machine-readable results (messages with severity, location, rule code).

  • Layered TOML configuration with sensible defaults.

  • Supports both stdio and SSE transports via FastMCP.

  • Secure by default: respects .gitignore, ignores .env / .venv, validates paths, enforces timeouts.

Related MCP server: Mcp Server

Installation

Via uvx (recommended)

uvx run prospector-mcp

Via pip

pip install prospector-mcp
prospector-mcp

Development setup

git clone https://github.com/yourname/prospector-mcp.git
cd prospector-mcp
pip install -e ".[dev]"
pytest

Usage

Claude Desktop / OpenCode

Add the server to your MCP settings:

{
  "mcpServers": {
    "prospector": {
      "command": "uvx",
      "args": ["run", "prospector-mcp"]
    }
  }
}

SSE transport

prospector-mcp --transport sse
# or
prospector-mcp --sse

Configuration

Configuration is layered (later layers override earlier ones):

  1. Built-in defaults

  2. Global config: ~/.config/prospector-mcp/config.toml

  3. Project config: .prospector-mcp.toml in the project root

Example .prospector-mcp.toml

[prospector]
timeout = 60
strictness = "medium"
profile = "default"
ignore = [".tox", "build", "dist"]

[server]
transport = "stdio"

Tools

prospector.run

Run Prospector on a target path.

Parameters:

  • target (string, required): Path to a Python file or directory.

  • profile (string, optional): Override the Prospector profile.

  • strictness (string, optional): Override strictness (verylow to veryhigh).

Returns: Structured dict with summary, messages, and execution_time.

prospector.check_ready

Check if Prospector is installed and available.

License

MIT

Available Tools

2 tools
prospector_check_readyA

Check whether Prospector is installed and report its version.

Inputs: no named parameters. Returns: object

prospector_runC

Run Prospector static analysis on a file or directory.

Inputs: target (required), profile, strictness. Returns: object

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.4/5.0

    Scored across 2 tools

    Disambiguation5/5

    The two tools have clearly distinct purposes: one runs the analysis, the other checks installation. No overlap.

    Naming Consistency5/5

    Both tools follow a consistent 'prospector_' prefix with a verb (run, check_ready). Clear and predictable pattern.

    Tool Count3/5

    Only 2 tools for a static analysis server feels minimal but not unreasonable if the scope is limited to running checks.

    Completeness2/5

    Missing common operations like listing rules, retrieving results, or configuring the analysis. Gaps are significant for a typical analysis workflow.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables AI agents to scan codebases for prioritized findings (TODO, FIXME, XXX) and retrieve results in table, JSON, or SARIF format via MCP.
      -
    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables dependency, security, and coding convention checks for Python and Java projects via MCP tools. Supports local paths or Git URLs.
      -
    • F
      license
      A
      quality
      B
      maintenance
      Enables evaluating Python projects against a deterministic quality bar using analyzer findings, per-dimension scores, and a review verdict, exposed through MCP tools, resources, and prompts. Users can run evaluations, inspect rules, and list analyzers to assess code readiness for review.
      3
      -