Skip to main content
Glama

PyFMCP

CI PyPI version Documentation

An easy-to-use, configurable, Python-focused Model Context Protocol providing tools for type-checking, testing and linting your code.

Requirements

  • Python 3.12+

  • An MCP-compatible client

  • uv (recommended) or another Python package installer

Related MCP server: mcp-server-analyzer

Usage

Run it from the project you want to inspect:

uv run pyfmcp

Development

uv sync --all-groups
uv run pytest
uv run ruff check .
uv run basedpyright

Build the documentation with uv run mkdocs serve.

Contributions are welcome. Please open an issue or pull request with a focused change, tests where appropriate, and documentation for user-visible behavior.

License

MIT

Available Tools

3 tools
basedpyrightC

Run basedpyright diagnostics

Inputs: paths. Returns: errors, warnings, exit_code, diagnostics

pytestC

Run pytest and return its JUnit XML report.

Inputs: paths. Returns: suites, exit_code

ruff_lintC

Run Ruff diagnostics

Inputs: paths. Returns: exit_code, diagnostics

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    B3/5.0

    Scored across 3 tools

    Disambiguation5/5

    Each tool targets a distinct aspect of Python development: type checking (basedpyright), testing (pytest), and linting (ruff_lint). There is no functional overlap between them, making selection unambiguous.

    Naming Consistency4/5

    Two tools use the bare command name (basedpyright, pytest) while ruff_lint appends a descriptor. This is a minor deviation, but the naming is still predictable since each tool is recognizable by its underlying tool name.

    Tool Count5/5

    Three tools is well-scoped for a Python development server covering static analysis, linting, and testing. Each tool has a clear purpose and the count is appropriate for the domain.

    Completeness4/5

    The set covers the core development loop of type checking, linting, and testing. A formatter or build tool could be added, but the current coverage is typical and workable for most Python projects.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      An MCP server that exposes Pyright language server functionality for Python, providing tools for type checking, code completions, and finding definitions. It enables AI models to perform static analysis and code formatting through the Model Context Protocol.
      7
      29 PyPI
      MIT
    • A
      license
      B
      quality
      B
      maintenance
      An MCP server that performs comprehensive Python code analysis using Ruff, ty, and Vulture for linting, type checking, and dead code detection.
      8
      144 PyPI
      11
      MIT
    • A
      license
      B
      quality
      D
      maintenance
      An MCP server that integrates Ruff linting, formatting, and code analysis tools with advanced logging and configuration options for AI coding assistants.
      4
      1
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      This MCP server enables automated maintenance and code analysis for Python/pytest repositories in isolated Docker environments. It supports read-only investigations, fix-and-verify tasks, and provides full audit trails with SQLite event history and artifact exports.
      MIT