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

ParametersJSON Schema
NameRequiredDescriptionDefault
pathsNo

Output Schema

ParametersJSON Schema
NameRequiredDescription
errorsYes
warningsYes
exit_codeYes
diagnosticsYes

TDQS

C2.2/5.0
Behavior1/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

There are no annotations provided, so the description must carry the full burden of behavioral disclosure. The description offers no information about side effects, file modifications, network access, or permissions required. It simply says 'Run', which is minimally informative and does not disclose any behavioral traits.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single sentence and front-loaded, but it is under-specified rather than genuinely concise. It omits necessary context about parameters and behavior, so the brevity does not serve the agent well.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool has one parameter, an output schema (per context), and no annotations, the description is incomplete. It does not explain what 'diagnostics' entails, how the output is structured, or how the 'paths' parameter affects behavior, leaving major gaps for correct invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters1/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema has one parameter 'paths' with 0% description coverage, and the tool description does not mention it at all. The description fails to explain what 'paths' means, how it should be provided, or its default behavior, offering no compensation for the lack of schema descriptions.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description 'Run basedpyright diagnostics' clearly identifies the tool's action ('Run') and resource ('basedpyright diagnostics'). It is specific enough to convey its purpose, but it does not explicitly differentiate from siblings like pytest or ruff_lint, though the name itself implies a type-checking focus.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives (e.g., pytest or ruff_lint), no prerequisites, and no exclusion criteria. It only states what the tool does, leaving the agent to infer appropriate usage scenarios without support.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

pytestC

Run pytest and return its JUnit XML report.

ParametersJSON Schema
NameRequiredDescriptionDefault
pathsNo

Output Schema

ParametersJSON Schema
NameRequiredDescription
suitesNo
exit_codeYes

TDQS

C2.8/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries full responsibility for disclosing behavioral traits. It only mentions that it runs pytest and returns the JUnit XML report, but omits details about side effects, exit code behavior, timeout potential, or any required environment setup, which are important for a test-execution tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single concise sentence with no filler. It is appropriately sized and front-loaded, conveying the core action and output format efficiently.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Although the tool is simple and an output schema exists, the description leaves the `paths` parameter undefined and provides no context about test execution semantics or usage. This sparse description is insufficient for an agent to fully understand the tool's scope and potential side effects.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The sole parameter `paths` has no description in the schema (coverage 0%) and is not mentioned in the tool description. While the name gives a hint, the description does not explain what paths should contain or how they are used, leaving the agent without sufficient parameter context.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the verb ('Run') and resource ('pytest') and specifies the output format ('JUnit XML report'). It does not explicitly distinguish itself from sibling tools like basedpyright or ruff_lint, but its function as a test runner is inherently distinct from those linters.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives, nor any context about prerequisites or exclusions. It merely states what the tool does, leaving the agent to infer when it should be used.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

ruff_lintC

Run Ruff diagnostics

ParametersJSON Schema
NameRequiredDescriptionDefault
pathsNo

Output Schema

ParametersJSON Schema
NameRequiredDescription
exit_codeYes
diagnosticsYes

TDQS

C2.7/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full burden of behavioral disclosure, but it only offers the generic phrase 'Run Ruff diagnostics'. It fails to disclose whether the operation is read-only, how output is returned, how the 'paths' parameter affects behavior, or whether any files or settings are modified, leaving significant ambiguity.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, front-loaded sentence—'Run Ruff diagnostics'—with no unnecessary words or repetition. It is maximally concise for the limited information it conveys.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The description covers only the bare action and omits usage guidance, parameter semantics, and behavioral details. While an output schema exists and the tool is relatively simple, the lack of contextual information (e.g., when to use it, what 'paths' does) makes the overall description inadequate for confident tool selection and invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters1/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The single parameter 'paths' has no description and the schema coverage is 0%. The description does not compensate by explaining what 'paths' represents, its default behavior, or the expected input format. The agent is left with no semantic understanding of the parameter beyond its name.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action ('Run') and the resource ('Ruff diagnostics'), identifying the tool as a linter. It is distinguishable from sibling tools basedpyright and pytest by naming Ruff, though it is slightly vague about what 'diagnostics' entails.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No usage guidance is provided. The description does not explain when to use this tool instead of basedpyright or pytest, nor does it mention any prerequisites, file types, or configuration context. It simply states what the tool does without any situational guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. 3 tool updatesv0.1.0
    • First observedbasedpyright
    • First observedpytest
    • First observedruff_lint

TDQS

B3/5.0
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.

Maintenance

ActivityMaintained
ResponsivenessSyncing

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

  • A
    license
    A
    quality
    C
    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
    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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/pzarczynski/pyfmcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server