
A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

An asynchronous MCP server built on FastMCP that serves built-in and dynamically loaded Python functions as tools over stdio or Server-Sent Events.
MCP tool server for exposing Python functions as tools is cataloged as an MCP server attributed to planetf1. An asynchronous MCP server built on FastMCP that serves built-in and dynamically loaded Python functions as tools over stdio or Server-Sent Events. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.
Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for MCP tool server for exposing Python functions as tools are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
Each Python file intended as a tool module must define exactly one function, whose name becomes the tool name.
The server temporarily adds the tool's directory to sys.path during loading so local imports work.
README.md · 841e0616e93f · Fetched 2026-11-13 13:53:25 UTC
Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.
Showing the last retrieved documentation snapshot; check the source for current changes.
mcp_server.py)The mcp_server.py script is an asynchronous server designed to expose Python functions as "tools" over various communication transports. It utilizes the FastMCP framework to manage tools and handle client interactions. The server comes with built-in tools and supports dynamic loading of custom tools from Python files or directories.
stdio: Standard input/output, suitable for direct command-line interaction or integration with other processes.sse: Server-Sent Events, allowing web clients to subscribe to tool outputs (listens on http://<host>:<port>/sse).echo: Returns the parameters it was called with.health: Reports the server's operational status (returns "ready")..py files or directories containing .py files.asyncio for efficient handling of concurrent operations.mcp Python package (specifically mcp.server.fastmcp is used). Ensure this package is installed in your Python environment.python mcp_server.py [tools_paths...] [--log FILENAME] [--transport {stdio,sse}] [--port PORT]
tools_paths (positional, zero or more)
*.py files (excluding those starting with _)../my_tool.py ./utils_directory--log FILENAME
--transport {stdio|sse}
stdio: Use standard input/output.sse: Use Server-Sent Events. The server will listen on 0.0.0.0 by default.stdio--port PORT
8080Custom tools are Python functions that the server can expose.
.py) intended to be a tool module should define exactly one function. This function will be registered as a tool. The name of the function will be its tool name..py file is provided, the server attempts to load the tool from that file..py files (ignoring files like __init__.py or any file starting with an underscore) and attempts to load a tool from each valid file.sys.path during loading to facilitate local imports.Create a Python file, for example, calculator.py:
# calculator.py
def add(a: int, b: int) -> int:
"""
Adds two integers and returns the result.
"""
print(f"Tool 'add' called with a={a}, b={b}") # Example of internal tool logging
return a + b
a) With built-in tools only (stdio transport):
python mcp_server.py
The server will start, and you can interact with echo and health tools via its standard input/output (details depend on the FastMCP client interaction protocol).
b) With a custom tool (stdio transport):
python mcp_server.py calculator.py
Now, the add tool from calculator.py will also be available.
c) With a directory of tools and detailed logging (stdio transport):
Assuming you have a directory named my_tools containing calculator.py and other tool files:
mkdir my_tools
mv calculator.py my_tools/
# You can add more .py tool files to my_tools/
python mcp_server.py my_tools --log server.log
The server will load all valid tools from the my_tools directory. Detailed logs will be written to server.log, and INFO messages to the console.
d) Using SSE transport:
python mcp_server.py calculator.py --transport sse --port 8888
The server will start and listen for SSE connections on http://0.0.0.0:8888/sse. Clients can connect to this endpoint to interact with the echo, health, and add tools.
How you interact with the tools depends on the chosen transport and the FastMCP client-side implementation.
For stdio: You would typically send JSON-RPC like messages to the server's standard input and receive responses on its standard output.
// Example conceptual input for stdio (actual format depends on FastMCP)
// {"jsonrpc": "2.0", "method": "add", "params": {"a": 5, "b": 3}, "id": 1}
For sse: Clients would connect to the /sse endpoint. The server would then push messages for tool invocations and responses.
stdout. This includes server startup messages, registered tools, and basic activity.--log option):
mcp_server.py and the mcp SDK.%(asctime)s - %(name)s - %(levelname)s - %(message)s.Press Ctrl+C to shut down the server gracefully.
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for MCP tool server for exposing Python functions as tools from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/mcp-server-planetf1)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.
No reviewed package or image identity; download statistics are not listed yet.
Alternative and complementary servers in the same category

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.