anirbanbasu avatar

Anirbanbasu Pymcp

anirbanbasu/pymcp

A Python template repository for building MCP servers with FastMCP, showcasing a range of component types developers will likely implement. Includes practical tools like DuckDuckGo web search, password generation, permutation calculations, and a Python code runner using Pydantic Monty. Demonstrates client-side sampling with a pirate-speak summarizer and elicitation with von Mises distribution random numbers. Resources handle both binary data (Base64-encoded PNG logo with SHA3-512 hash) and dynamic templated URLs for Unicode character lookup. The code prompt generation shows prompt implementation patterns. Well-tested with pytest coverage and security scanning via CodeQL and OpenSSF Scorecard. Fork this when you want to spin up a new Python MCP server without reinventing project structure, testing harnesses, or examples of every component type.

tools
5
auth
Secret needed
transport
HTTP
last updated
Sep 20, 2025

Tools

5 tools

Public tool metadata for what this MCP can expose to an agent.

greetGreets the caller with a quintessential Hello World message.

Greets the caller with a quintessential Hello World message.

No parameter schema in public metadata yet.

generate_passwordGenerates a random password with specified length, optionally including special characters and conforming to the complexity requirements of at least one lowercase letter, one uppercase letter, and two digits.

Generates a random password with specified length, optionally including special characters and conforming to the complexity requirements of at least one lowercase letter, one uppercase letter, and two digits.

No parameter schema in public metadata yet.

text_web_searchSearches the web with a text query using the Dux Distributed Global Search (DDGS).

Searches the web with a text query using the Dux Distributed Global Search (DDGS).

No parameter schema in public metadata yet.

permutationsCalculates the number of ways to choose k items from n items without repetition and with order.

Calculates the number of ways to choose k items from n items without repetition and with order.

No parameter schema in public metadata yet.

run_python_codeRuns arbitrary Python code in a secure and fast interpreter using Pydantic Monty.

Runs arbitrary Python code in a secure and fast interpreter using Pydantic Monty.

No parameter schema in public metadata yet.

Sponsors

Readme

Details

Repository
github.com/anirbanbasu/pymcp
Transport
HTTP
Auth
Required
Registry
MCP registry, active

More from anirbanbasu