
Anirbanbasu Pymcp
ai.smithery由 smithery.ai 发布官方发布者v0.1.7更新于 Oct 24, 2026
Primarily to be used as a template repository for developing MCP servers with FastMCP in Python, P…
发布方自己的服务:222wcnm Bilistalkermcp
概览
一个基于 Python FastMCP 的模板型 MCP 服务器,提供问候、密码生成、网页搜索、排列计算、沙箱 Python 执行等示例工具及示例资源与提示词。
- 可以做什么
- 以带 UTC 时间戳的 Hello World 消息问候调用方
- 按指定长度生成随机密码,可选包含特殊字符
- 通过 DDGS 执行文本网页搜索,可设地区、结果数量与页数
- 计算排列数,并在沙箱解释器中运行任意 Python 代码
- 读取示例资源(PNG 与 SVG 标志、Unicode 取模 10 字符)并获取 Python 编码提示词
- 适用场景
- 主要适合作为用 Python 与 FastMCP 开发自有 MCP 服务器的参考模板,或用于让 MCP 客户端对接一组示例工具、资源与提示词进行试用。并非面向生产环境的实用服务器。
- 运行要求
- 清单指向需要 Authorization 请求头中 bearer 令牌的 Smithery 远程端点。自行运行需要 Python 及 uv(安装目标还需 just);可选环境变量涵盖日志级别、传输方式、缓存 TTL、主机、端口与 CORS 来源,以及用于搜索出口的 DDGS_PROXY。
安装
在 SourceWeft 中
- 打开 控制台中的 Anirbanbasu Pymcp,将其添加到工作区。
- 连接 Authorization token 凭据。它们会被私密存储,绝不会在公开页面上展示。
- 为需要使用其工具的对话启用该服务。
Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。
交给智能体安装
把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。
阅读 https://sourceweft.com/mcp/ai.smithery%2Fanirbanbasu-pymcp/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。其他 MCP 客户端
把它添加到你客户端的 mcpServers 配置中。
{
"mcpServers": {
"anirbanbasu-pymcp": {
"type": "http",
"url": "https://server.smithery.ai/@anirbanbasu/pymcp/mcp",
"headers": {
"Authorization": "Bearer <YOUR_TOKEN>"
}
}
}
}README
[Python 3.12+] [pytest] [PyPI] [GitHub commits since latest release] [CodeQL Advanced] [OpenSSF Scorecard]
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.
Components
The following components are available on this MCP server.
Tools
greet
- Greets the caller with a quintessential Hello World message.
- Input(s)
name:string(optional): The name to greet. Default value is none.
- Output(s)
TextContentwith a UTC time-stamped greeting.
generate_password
- 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. If special characters are included, it will also contain at least one such character.
- Input(s)
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 isFalse.
- Output(s)
TextContentwith the generated password.
text_web_search
- Searches the web with a text query using the Dux Distributed Global Search (DDGS).
- Input(s)
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-enorus-en. Default value isuk-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.
- Environment variable(s)
DDGS_PROXY:string(optional): Optional proxy server to use for egress web search requests.
- Output(s)
TextContentwith a list of dictionaries with search results.
permutations
- Calculates the number of ways to choose $k$ items from $n$ items without repetition and with order. If $k$ is not provided, it defaults to $n$.
- Input(s)
n: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 ofn.
- Output(s)
TextContentwith number of ways to choose $k$ items from $n$, essentially ${}^{n}P_{k}$.
run_python_code
- Runs arbitrary Python code in a secure and fast interpreter using Pydantic Monty. Note that Pydantic Monty is experimental and Python language support is partial as of February 8, 2026.
- Input(s)
code:string: The Python code to run.inputs:dict[str, Any](optional): A dictionary of input values for the Python code. Default value isNone.script_name:str(optional): The name of the script used in traceback and error messages. Default value ismain.py.check_types:bool(optional): A flag to indicate whether to check types. Default value isTrue.type_definitions:str(optional): Type definitions to be used for type checking. Default value isNone.
- Output(s)
TextContentwith 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.
Resources
resource_logo
- Retrieves the Base64 encoded PNG logo of PyMCP along with its SHA3-512 hash.
- URL:
data://logo - Output(s)
TextContentwith aBase64EncodedBinaryDataResponsePydantic 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 indata. (The hex encoded hash value is expected to be 6414b58d9e44336c2629846172ec5c4008477a9c94fa572d3419c723a8b30eb4c0e2909b151fa13420aaa6a2596555b29834ac9b2baab38919c87dada7a6ef14.)hash_algorithm:string: The cryptographic hash algorithm used, e.g., sha3_512.
resource_logo_svg
- Retrieves the SVG logo of PyMCP.
- URL:
data://logo_svg - Output(s)
TextContentwith a the SVG data for the PyMCP logo.
resource_unicode_modulo10
- Computes the modulus 10 of a given number and returns a Unicode character representing the result. The character is chosen based on whether the modulus is odd or even. For odd modulus, it uses the Unicode characters ❶ (U+2776), ❸ (U+2778), ❺ (U+277A), ❼ (U+277C), and ❾ (U+277E). For even modulus, it uses the Unicode characters ⓪ (U+24EA), ② (U+2461), ④ (U+2463), ⑥ (U+2465), and ⑧ (U+2467).
- URL:
data://modulo10/{number} - Input(s)
number:integer: A positive integer between 1 and 1000, both inclusive.
- Output(s)
TextContentwith a string representing the correct Unicode character.
Prompts
code_prompt
- Get a prompt to write a code snippet in Python based on the specified task..
- Input(s)
task:string: The description of the task for which a code implementation prompt will be generated.
- Output(s)
strrepresenting the prompt.
Installation
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.
Environment variables
The following environment variables can be configured.
PYMCP_LOG_LEVEL: Sets the Python log level for the PyMCP server. Default isINFO.MCP_SERVER_TRANSPORT: Sets the FastMCP server transport type of this MCP server. Default isstdio.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 islocalhost.FASTMCP_PORT: Sets the port number for the FastMCP server when using network transports. Default is8000.ASGI_CORS_ALLOWED_ORIGINS: Sets the CORS allowed origins when the MCP server is started with a transport over HTTP. Default is["*"].
Standalone usage
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.
Test with the MCP Inspector
The MCP Inspector is an official Model Context Protocol tool that can be used by developers to test and debug MCP servers. This is the most comprehensive way to explore the MCP server.
To use it, you must have Node.js installed. The best way to install and manage node as well as packages such as the MCP Inspector is to use the Node Version Manager (or, nvm). Once you have nvm installed, you can install and use the latest Long Term Release version of node by executing the following.
Following that, run the MCP Inspector and PyMCP by executing the following in the WD.
This will create a local URL at port 6274 with an authentication token, which you can copy and browse to on your browser. Once on the MCP Inspector UI, press Connect to connect to the MCP server. Thereafter, you can explore the tools available on the server.
You can, alternatively, launch the MCP inspector by running just launch-inspector.
Use it with Claude Desktop, Visual Studio, and so on
The server entry to run with stdio transport that you can use with systems such as Claude Desktop, Visual Studio Code, and so on is as follows.
Instead of having pymcp as the last item in the list of args, you may need to specify the full path to the script, e.g., WD/.venv/bin/pymcp.
Remotely hosted options
The currently available remotely hosted options are as follows.
- FastMCP Cloud: https://pymcp-template.fastmcp.app/mcp
- Glama.AI: https://glama.ai/mcp/servers/@anirbanbasu/pymcp
Testing and coverage
To run the provided set of tests using pytest, execute the following in WD. To get a report on coverage while invoking the tests, run the following in WD.
This will generate something like the following output.
Contributing
See the Contributing guide.
License
MIT.
来源:README.md,提交 21297d1
工具
0版本历史
1- v0.1.7最新Sep 16, 2026
评分
已满足适用检查项的 85%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通必需25 分
- 已声明认证方式必需10 分
- 已列出工具必需15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分
其他 Smithery 集成

222wcnm Bilistalkermcp
ai.smithery官方发布者
Bilibili 创作者分析服务器,让助手查询指定用户的资料、视频、动态、专栏、字幕、关注列表和评论。

Zwldarren Akshare One Mcp
ai.smithery官方发布者
远程 MCP 服务器,让助手以只读方式获取中国股市数据:历史与实时行情、新闻和财务报表。

Zhaoganghao Hellomcp
ai.smithery官方发布者
一个小型远程 MCP 服务器,让助手按名字向人问候,并介绍“Hello, World”的由来。

Zeta Chain Cli
ai.smithery官方发布者
一个远程 MCP 服务器,让助手为任意姓名或受众生成友好、可定制的问候语。

Yuna0x0 Hackmd Mcp
ai.smithery官方发布者
一个连接 HackMD API 的 MCP 服务器,让助手读取、创建、更新和删除 HackMD 笔记并管理团队。