Privacy choices

Git-Stars uses essential storage for site operation. Optional analytics stays disabled unless you accept it. This choice does not enable advertising. Privacy Policy

LogoGit-Stars
Top StarsGrowth SnapshotAI AgentsProject reviewsInsightsTools
LogoGit-Stars

Explore dated GitHub snapshots and independent open-source guides

AboutLogo of Git-StarsGit-Stars
Rankings
  • Top Stars
  • Growth Snapshot
  • AI Agents
  • Explore
Resources
  • Insights
  • Tools
  • Editorial Policy
About
  • About
  • Contact
Legal
  • Privacy Policy
  • Terms of Service
© 2026 Git-Stars. All Rights Reserved.
Back to project reviews
Developer ToolsMCPPythonAI AgentLLMDeveloper Tools

FastMCP tested locally: can a read-only tool separate answers from refusals?

We exercised six FastMCP 4.1.0 STDIO cases: discovery, valid lookup, unknown ID, an example business refusal, missing argument and subprocess exit. A business denial still appeared as a protocol-level success. The framework shortens the wiring, not the authorization design.

Git-Stars EditorialPublished: 8/15/2026Updated: 10/23/2026PrefectHQ/fastmcp
View on GitHubProject homepageBrowse all analyses

Repository facts

Repository snapshot

License

Apache License 2.0

Open source

Yes

Historical counters lack a verifiable capture date and are not displayed here. Check GitHub for current stars, forks and issues; article publication and revision dates are not collection dates.

Reference basis: the repository, README, license file and sources linked in the article. Unless a test setup and results are explicitly documented, this is desk research rather than a hands-on benchmark or security audit.

READMEAssessment basis and editorial policy

30-second read

Start with the verdict before you invest more time.

Check setup, commercial conditions, and capability limits for this task. Documentation, attributed accounts, and in-house tests are identified separately; untested outcomes are not guaranteed.

Getting started

local Python setup is compact; remote access needs explicit protection.

Commercial conditions

permissive licensing does not eliminate dependency or data-rights review.

Capability limits

MCP and auth building blocks, not automatic business authorization or complete hosted governance.

What real problem it solves

FastMCP connects tool definitions, schemas, client discovery and STDIO calls so a team can focus on the function contract. We verified one read-only synthetic handbook tool, not an organization-wide document authorization system.

Why it matters

Making a Python function available to an agent is easy; distinguishing a real answer from a missing item, a business denial and a protocol error is harder. Our local refusal returned denied while is_error remained false, so the application must interpret business status explicitly.

Open-source and commercial terms

The repository's Apache-2.0 license permits commercial code use and modification under its conditions. Retain applicable license and notices, mark modified files where required, and review patent terms. The code license does not authorize sharing real documents or make a separate hosting service free.

How non-coders can use it

Write three questions that should be answered and two that must be refused. Ask a developer or Codex/Claude to implement the fictional read-only example, then inspect its tool catalog and raw results. Valid, unknown, denied and missing-argument cases must be distinguishable; a fluent final AI answer is not enough.

How to deploy it with Codex or Claude

Pin FastMCP 4.1.0 in an isolated Python 3.12 environment and first run the six local STDIO checks on synthetic content. Our shutdown check required an explicit keep_alive=False transport. Before real data, add identity, document-level authorization, path and logging boundaries. Before HTTP, configure and test official authentication options. We did not deploy a remote service.

What its real ceiling looks like

This trial confirms local discovery, a valid call, unknown ID, an example-rule denial, missing-argument validation and process exit. The denial is application code rather than a built-in sandbox. HTTP OAuth, real-user authorization, concurrent requests, production isolation and agent tool choice were not tested.

Full article

Reading basis · Local functional experiment

2026-10-15 (Asia/Shanghai) · FastMCP 4.1.0 / Python 3.12.13

Windows 11, isolated Python 3.12 environment, one local read-only STDIO server and client; no model or HTTP endpoint.

One synthetic handbook tool: discovery, allowed lookup, unknown ID, example-rule refusal, missing argument, and subprocess exit.

The refusal is our example's rule, not FastMCP's built-in authorization. No HTTP authentication, real files, model selection or production isolation was tested.

  • Synthetic tool and method
  • Six-case result table

These are observations within the stated scope, not certification or a comprehensive quality verdict.

A successful tool call is not the same as a sound boundary

We did not point an agent at a company drive. We asked a narrower question: can a read-only handbook tool make a valid answer, an unknown document, a business refusal and a malformed request visibly different? If all four become fluent prose, the operator has little basis for deciding what the tool actually did. Our entire handbook contained two fictional entries: PUBLIC-SETUP said “Setup window: 48 h. Voltage: 280 V.” and PUBLIC-RETURN contained a return period. Neither is a real product or company policy.

On October 15, 2026, we ran FastMCP 4.1.0 on Windows 11 with Python 3.12.13 in an isolated environment. A local FastMCP client connected to one STDIO server. There was no Codex or Claude session, model API, HTTP endpoint or real file. We recorded the preset method and synthetic tool and published the six-case result table.

What the client actually saw

The tool catalog exposed lookup_doc with one required string argument, doc_id. PUBLIC-SETUP returned only its predefined text. NO-SUCH-ID returned not_found without a document body. PRIVATE-PAYROLL returned denied without a body, but this refusal came from our own explicit example rule. FastMCP did not discover a sensitive file or perform organization-wide authorization. Importantly, the tool result's is_error flag was false for this business refusal. An application that treats “no protocol error” as “approved answer” could misread the outcome.

Omitting doc_id behaved differently: call_tool raised a ToolError about the missing required argument. We also checked that the STDIO child process was running during the session and had exited after disconnect when the transport was configured with keep_alive=False. In the tested version, the default transport can keep a process available between sessions; a caller should not infer shutdown merely from leaving a client context. These are small, concrete observations, not a concurrency or failure-recovery study.

The work a framework cannot remove

The official client guide documents in-memory, STDIO and HTTP paths, while the tool-call guide covers discovery and execution. Decorators and Python type hints make an existing function discoverable quickly. They do not decide which employee may read which handbook section. Our example did not even accept a file path, so it says nothing about traversal, filesystem isolation or identity. Replacing fixed strings with arbitrary file reads would be a different security design and a different acceptance test.

A non-coder can write three questions the tool must answer and two it must refuse, then ask a developer or Codex/Claude to build a local read-only mock using the public example. Review the advertised schema and raw tool responses, not just the agent's final wording. Before connecting real documents, specify an allowlist, user identity, per-document rights and what logs may retain. Before exposing HTTP, follow FastMCP's authentication guidance. Its documentation distinguishes HTTP authentication from STDIO's inherited local execution boundary; an HTTP endpoint with default auth settings is not automatically protected.

When to choose it, and when not to

FastMCP fits a Python team that needs to define and iterate an MCP tool contract around existing functions. It is not an enterprise permission system in a box. The official Python SDK is an alternative if closer control over protocol APIs is useful; a TypeScript-heavy team can consider the official TypeScript SDK. We did not run these alternatives on the same task and cannot rank their latency, security, or code size.

The Apache-2.0 code license permits commercial use and modification under its conditions, including applicable license and notice retention. It does not grant permission to expose a customer's records or make a hosted service free. The capability ceiling established here is local STDIO tool discovery, calling and selected negative cases. Remote deployment, OAuth, real-user authorization, production isolation and model-side tool selection remain untested.

Open the repository

Python framework for MCP servers and clients.

View on GitHub

Continue your evaluation

Insight

How Non-Coders Can Evaluate Open-Source Tools with Codex

A practical workflow for reading a repository, checking licenses and data flows, planning a limited trial, and deciding when not to install.

Read article
Insight

A GitHub Repository Adoption Checklist: Evidence Before Trust

Check fit, maintenance, release provenance, dependencies, license scope, and recovery before adopting a repository, without mistaking popularity for safety.

Read article

Alternative projects

If you are close to adoption, compare these alternatives on deployment and commercial fit first.

modelcontextprotocol/python-sdk

The official Python SDK implements MCP servers and clients.

Strengths

Consider it when matching protocol APIs directly is important.

Weaknesses

Do not assume it has no high-level helpers; evaluate the SDK version and examples.

Verdict

Compare the actual API and upgrade path, not an unsupported blanket claim that it requires much more boilerplate.

modelcontextprotocol/python-sdk

modelcontextprotocol/typescript-sdk

The official TypeScript SDK provides the corresponding JS/TS route.

Strengths

Keeps tool implementations in a TypeScript team's existing stack.

Weaknesses

Adopting it for Python business logic may introduce an unnecessary language boundary.

Verdict

Choose primarily by team language and client compatibility.

modelcontextprotocol/typescript-sdk

lastmile-ai/mcp-agent

mcp-agent documents agent workflow patterns using MCP.

Strengths

Relevant when composing calls into an agent application is the main task.

Weaknesses

Application orchestration is a different responsibility from defining a tool server.

Verdict

It can complement a FastMCP server rather than replace it.

lastmile-ai/mcp-agent

punkpeye/awesome-mcp-servers

awesome-mcp-servers is a discovery directory.

Strengths

Search it before building an integration that already exists.

Weaknesses

A listing is not a security review, service license or maintenance guarantee.

Verdict

Use for research, not as a deployable framework; its scores reflect discovery only.

punkpeye/awesome-mcp-servers