Primarily to be used as a template repository for developing MCP servers with FastMCP in Python, Pβ¦
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Inspect callable tools, capabilities, and parameters exposed to AI agents by Anirbanbasu Pymcp.
name_`string`_ (_optional_): The name to greet. Default value is none.
length_`integer`_: The length of the generated password. The value must be an integer between 8 and 64, both inclusive.
use_special_chars_`boolean`_ (_optional_): A flag to indicate whether the password should include special characters. Default value is `False`.
query_`string`_: The search query to fetch results for. It should be a non-empty string.
region_`string`_ (_optional_): Two letter country code followed by a hyphen and then by two letter language code, e.g., `uk-en` or `us-en`. Default value is `uk-en`.
max_results_`integer`_ (_optional_): Optional maximum number of results to be fetched. Default value is 10.
Primarily to be used as a template repository for developing MCP servers with FastMCP in Python, PyMCP is somewhat inspired by the official everything MCP server in Typescript.
The following components are available on this MCP server.
greetname: string (optional): The name to greet. Default value is none.TextContent with a UTC time-stamped greeting.generate_passwordlength: integer: The length of the generated password. The value must be an integer between 8 and 64, both inclusive.use_special_chars: boolean (optional): A flag to indicate whether the password should include special characters. Default value is False.TextContent with the generated password.text_web_searchquery: string: The search query to fetch results for. It should be a non-empty string.region: string (optional): Two letter country code followed by a hyphen and then by two letter language code, e.g., uk-en or us-en. Default value is uk-en.max_results: integer (optional): Optional maximum number of results to be fetched. Default value is 10.pages: integer (optional): Optional number of pages to spread the results over. Default value is 1.DDGS_PROXY: string (optional): Optional proxy server to use for egress web search requests.TextContent with a list of dictionaries with search results.permutationsn: integer: The number of items to choose from. This should be a non-zero, positive integer.k: integer (optional): The number of items to choose. Default value is the value of n.TextContent with number of ways to choose $k$ items from $n$, essentially ${}^{n}P_{k}$.run_python_codecode: string: The Python code to run.inputs: dict[str, Any] (optional): A dictionary of input values for the Python code. Default value is None.script_name: str (optional): The name of the script used in traceback and error messages. Default value is main.py.check_types: bool (optional): A flag to indicate whether to check types. Default value is True.type_definitions: str (optional): Type definitions to be used for type checking. Default value is None.TextContent with the output, if any, of the Python code.[!NOTE] The
pirate_summary(LLM client sampling) andvonmises_random(client elicitation) example tools have been removed. Both relied on server-initiated requests (ctx.sample()andctx.elicit()), which SEP-2577 removed from the modern MCP protocol (2026-07-28) in favour of a stateless per-request envelope with no back-channel for the server to call back into the client. FastMCP now marks both APIs deprecated β they still function, but only on the older, handshake-era (session-based) protocol. These tools were dropped rather than kept working against a deprecated protocol era.This does not affect the tools, resources, and prompts that remain: the underlying MCP SDK negotiates the protocol version per connection and serves both
2026-07-28+ and handshake-era clients automatically, with no code changes needed here. Only server-initiated back-channel patterns (i.e., anything usingctx.sample()orctx.elicit()) are legacy-only. If you fork this template and want to add a tool that relies on client sampling or elicitation, be aware it will only work against clients that negotiate the older, deprecated protocol.
resource_logodata://logoTextContent with a Base64EncodedBinaryDataResponse Pydantic object with the following fields.
data: string: The Base64 encoded PNG logo of PyMCP.hash: string: The hexadecimal encoded cryptographic hash of the raw binary data, which is represented by its Base64 encoded string equivalent in data. (The hex encoded hash value is expected to be 6414b58d9e44336c2629846172ec5c4008477a9c94fa572d3419c723a8b30eb4c0e2909b151fa13420aaa6a2596555b29834ac9b2baab38919c87dada7a6ef14.)hash_algorithm: string: The cryptographic hash algorithm used, e.g., sha3_512.resource_logo_svgdata://logo_svgTextContent with a the SVG data for the PyMCP logo.resource_unicode_modulo10data://modulo10/{number}number: integer: A positive integer between 1 and 1000, both inclusive.TextContent with a string representing the correct Unicode character.code_prompttask: string: The description of the task for which a code implementation prompt will be generated.str representing the prompt.The directory where you clone this repository will be referred to as the working directory or WD hereinafter.
Install uv. Install just. To install the project with its minimal dependencies in a virtual environment, run the following in the WD. To install all non-essential dependencies (which are required for developing and testing), replace the install target with the install-all target in the following command.
The following environment variables can be configured.
PYMCP_LOG_LEVEL: Sets the Python log level for the PyMCP server. Default is INFO.MCP_SERVER_TRANSPORT: Sets the FastMCP server transport type of this MCP server. Default is stdio.RESPONSE_CACHE_TTL: Sets the time, in seconds, for the time-to-live (TTL) cache that can be activated for caching prompt, resource and tool responses from the server. Default value is 30. Any integer value between 0 and 86400 (i.e., one day), both inclusive, is valid. Setting it to 0 effectively disables response caching.FASTMCP_HOST: Sets the host address for the FastMCP server when using network transports (e.g., streamable-http, sse). Default is localhost.FASTMCP_PORT: Sets the port number for the FastMCP server when using network transports. Default is 8000.ASGI_CORS_ALLOWED_ORIGINS: Sets the CORS allowed origins when the MCP server is started with a transport over HTTP. Default is ["*"].PyMCP can be started standalone as a MCP server with stdio transport by running the following. Alternatively, it can be started using streamable-http or sse transports by specifying the transport type using the MCP_SERVER_TRANSPORT environment variable.
Factual signals from GitHub, npm, and our automated checks β not a rating.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/anirbanbasu-pymcp)<a href="https://allmcps.com/mcp/anirbanbasu-pymcp"><img src="https://allmcps.com/api/badge/anirbanbasu-pymcp?style=directory" alt="Anirbanbasu Pymcp on AllMCPs" /></a>