Userful Mcps

MCP开发工具

提供方 daltonnyx

开发工具 stdio · 本地进程 无需鉴权 社区 / 第三方
查看接入方式

A collection of standalone Python scripts that implement Model Context Protocol (MCP) servers for various utility functions. Each server provides specialized tools that can be used by AI assistants or other applications that support the MCP protocol.

一句话选型结论

按资料字段整理

Userful Mcps 属于开发工具类 MCP 服务器,stdio · 本地进程,无需鉴权,有可直接执行的安装命令。接入前先确认权限范围;涉及写入、删除或付款的操作,建议先在测试环境验证。

分类开发工具 传输方式stdio · 本地进程 鉴权无需鉴权 部署方式本地部署
GitHub 星标 5 仓库热度,无公开仓库时显示未标注
工具数 7 暴露给模型的工具数量
资源 / 提示词 0 / 0 资源与提示词模板数量
维护方 社区 / 第三方 核验等级 仅资料核对

工具与能力

开发工具
数量来自来源目录的标注,具体工具清单以官方文档为准
工具数量7暴露给模型可调用的工具个数
资源数量0可读取的资源条目
提示词数量0内置提示词模板数量

能力标签

适用场景

developer-toolsmermaidmcp-servermodel-context-protocol-serversdocx-replaceAI工具Python本地部署

安装与配置

stdio · 本地进程 无需鉴权
客户端在本机拉起子进程,数据不出本机
pip install uv

这条命令只是入口,具体启动参数请按官方文档补齐,不要直接照搬到别的服务器。

  1. 1
    准备运行环境

    stdio 服务在本地起进程,需要先装好 Node.js 等运行时,再按安装命令拉取依赖。

  2. 2
    安装服务

    复制上面的安装命令执行;命令里带占位符的位置,换成自己的密钥或路径。

  3. 3
    写入客户端配置

    在客户端的 MCP 配置里填好启动命令和参数,保存后完全退出客户端再打开,让新配置生效。

  4. 4
    验证是否可用

    连接成功后客户端会列出约 7 个工具,随便调一个只读工具确认能返回结果。

典型使用场景

3 类
按分类与标签整理的常见用法,具体以官方文档为准
代码与仓库操作

在对话里直接查代码、提 issue、走 PR,省掉来回切工具。

本地命令与脚本

把构建、测试、格式化这类重复命令交给模型执行。

接口联调与测试

让模型调你的接口、跑一遍用例,快速定位问题。

选择建议

选之前先看这几条
按条目字段给出的判断,不替你决定用不用

值得选的地方

  • 资料标注 7 个工具,职责相对集中,接入后不容易误操作。
  • 有现成的安装命令,不用自己找入口,照着跑就能起服务。
  • 资料标注无需鉴权,装好就能连。

先想清楚的地方

  • stdio 方式要求本地装好运行时(如 Node.js),换机器要重新装一遍。
  • 版本更新与行为细节以官方仓库为准。

更适合

  • 需要在开发工具场景里让模型直接调用外部能力的人。
  • 想先快速试一下、能接受在本地或自有环境跑服务的人。

不太适合

  • 完全不想在本地装环境的人。
  • 需要厂商级 SLA 和技术支持的生产环境。

同类对比

6 个同类
同分类里挑最接近的几条,字段以各自详情页为准
MCP 服务器工具数传输方式部署方式安装命令最后核验
Userful Mcps当前 7 stdio · 本地进程 本地部署 有 2026-05-18
Git 838e2ec1 12 stdio · 本地进程 本地部署 有 2026-05-17
Markitdown MCP 2c653a5f 1 stdio · 本地进程 本地部署 有 2026-05-17
JavaGuide 未标注 stdio · 本地进程 本地部署 有 2026-04-11
awesome-claude-skills 未标注 stdio · 本地进程 本地部署 有 2026-04-26
Context7 831acf40 未标注 stdio · 本地进程 本地部署 有 2026-05-17

服务器档案

开发工具
字段来自项目仓库与公开索引,中文说明由本站标注
提供方daltonnyx上游标注的维护方 daltonnyx
分类开发工具本站按上游分类展示
连接方式stdio · 本地进程客户端在本机拉起子进程,数据不出本机
鉴权方式无需鉴权远程服务建议用最小权限凭据
维护方社区 / 第三方核验等级 仅资料核对
包名 / 运行时未标注 · 未标注本地安装时用到的包标识与运行时
部署类型本地部署上游给出的部署形态
最近核验2026-05-18上游最后核验时间

详细介绍

11.1 KB
来自项目仓库与上游目录的原文,未做删改

有用的模型上下文协议服务器(MCPS)

一组实现模型上下文协议的独立Python脚本
用于各种实用功能的(MCP)服务器。每台服务器都提供专业
AI助手或其他支持
MCP协议。

什么是MCP?

模型上下文协议(MCP)是人工智能助手的一种标准化方式
与外部工具和服务交互。它允许AI模型扩展其
通过调用MCP服务器提供的专用函数来实现功能。
通信通过标准输入/输出(stdio)使用JSON消息进行。

可用服务器

每个MCP服务器都设计为使用Python环境管理器运行,如
uv.

YouTube数据提取器(ytdlp)

使用yt-dlp从YouTube视频中提取信息的服务器。

工具:

  • 摘录章节:从YouTube视频中获取章节信息。
  • 提取字幕:从YouTube视频中获取特定内容的字幕
    章节或整个视频。

MCP服务器配置:```json
"mcpServers": {
"ytdlp": {
"name": "youtube", // Optional friendly name for the client
"command": "uv",
"args": [
"run",
"--directory", "/useful-mcps/ytdlp", // Path to the MCP directory containing pyproject.toml
"--", // Separator before script arguments, if any
"ytdlp_mcp" // Match the script name defined in pyproject.toml [project.scripts]
]
// 'cwd' is not needed when using --directory
}
}


### Word文档处理器(`docx_replace`)

用于处理Word文档的服务器,包括模板处理和PDF
转换。

**工具:**

- **流程模板**:替换Word模板中的占位符并进行管理
内容块。
- **获取模板密钥**:从Word文档中提取所有替换键
模板。
- **转换为PDF**:将Word文档(docx)转换为PDF格式。

**MCP服务器配置:**```json
"mcpServers": {
"docx_replace": {
"name": "docx", // Optional friendly name
"command": "uv",
"args": [
"run",
"--directory", "/useful-mcps/docx_replace", // Path to the MCP directory
"--",
"docx_replace_mcp" // Match the script name defined in pyproject.toml
]
}
}

PlantUML渲染器(plantuml)

使用PlantUML服务器渲染PlantUML图的服务器(通常通过
Docker)。

工具:

  • 渲染图:将PlantUML文本转换为图表图像(例如PNG)。

MCP服务器配置:```json
"mcpServers": {
"plantuml": {
"name": "plantuml", // Optional friendly name
"command": "uv",
"args": [
"run",
"--directory", "/useful-mcps/plantuml", // Path to the MCP directory
"--",
"plantuml_server" // Match the script name defined in pyproject.toml
]
}
}


_(注意:需要一个运行中的PlantUML服务器,可以通过以下方式访问和管理
服务中实现的Docker)。_

### 美人鱼渲染器(`mermaid`)

一个使用mercurchart.com API绘制人鱼图的服务器。

**工具:**

- **渲染美人鱼图表**:通过创建一个PNG图像将Mermaid代码转换为PNG图像
mermaidchart.com上的文件。

**MCP服务器配置:**```json
"mcpServers": {
"mermaid": {
"name": "mermaid", // Optional friendly name
"command": "uv",
"args": [
"run",
"--directory", "/useful-mcps/mermaid", // Path to the MCP directory
"--",
"mermaid_mcp" // Match the script name defined in pyproject.toml
],
"env": { // Environment variables needed by the MCP
"MERMAID_CHART_ACCESS_TOKEN": "YOUR_API_TOKEN_HERE"
}
}
}

(注意:需要将Mermaid Chart API访问令牌设置为环境
变量)。

Rss订阅到markdown(rss2md)

用于将rss提要内容转换为带有日期过滤的markdown格式的服务器。

工具:

  • fetch_rss_to_markdown:获取RSS提要,按日期过滤文章,以及
    返回格式化为Markdown列表的匹配文章。.

MCP服务器配置:```json
"mcpServers": {
"mermaid": {
"name": "rss2md", // Optional friendly name
"command": "uv",
"args": [
"run",
"--directory", "/useful-mcps/rss2md", // Path to the MCP directory
"--",
"rss2md_mcp" // Match the script name defined in pyproject.toml
],
"env": { // Environment variables needed by the MCP
}
}
}


## 安装

1. **克隆存储库:**```bash
git clone https://github.com/daltonnyx/useful-mcps.git # Replace with the actual repo URL if different
cd useful-mcps
  1. 安装 uv: 如果你没有 uv,安装它:```bash
    pip install uv

or follow instructions at https://github.com/astral-sh/uv


1. **依赖关系:** 依赖关系由MCP通过以下方式管理 `pyproject.toml`.
`uv run` 通常会在虚拟环境中自动安装它们
首次使用以下命令运行MCP时的环境 `--directory`.

## 用法

### 运行服务器

建议使用以下命令运行每个MCP服务器 `uv run --directory `
指向特定MCP的目录。 `uv` 处理虚拟环境
以及基于 `pyproject.toml` 发现在那里。

示例(从根开始 `useful-mcps` 目录):```bash
# Run the YouTube MCP
uv run --directory ./ytdlp ytdlp_mcp

# Run the Mermaid MCP (ensure token is set in environment)
uv run --directory ./mermaid mermaid_mcp

或者,配置您的MCP客户端(如示例JSON配置
上面)执行 uv run --directory ... 直接命令。

连接到服务器

使用配置MCP客户端应用程序以启动所需的服务器
command 和 args “MCP服务器配置”示例中所示的结构
对于每台服务器。确保 command 指向您的 uv 可执行文件和
args 正确指定 --directory 带有MCP文件夹的路径和
要运行的脚本名称。使用传递必要的环境变量(如API令牌)
这 env 财产。

工具特定使用示例

这些显示了示例 arguments 您将发送至 call_tool 功能
相应的MCP服务器。

YouTube数据提取器

摘录章节```json

{
"url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
}


#### 提取字幕```json
{
"url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
"language": "en",
"chapters": [
{
"title": "Introduction",
"start_time": "00:00:00",
"end_time": "00:01:30"
}
]
}

Word文档处理器

流程模板```json

{
"template_file": "/path/to/template.docx",
"replacements": {
"name": "John Doe",
"date": "2023-05-15"
},
"blocks": {
"optional_section": true,
"alternative_section": false
},
"output_filename": "/path/to/output.docx"
}


_(注: `template_file` 和 `docx_file` 还可以接受base64编码的字符串
而不是路径)_

#### 获取模板密钥```json
{
"template_file": "/path/to/template.docx"
}

转换为PDF```json

{
"docx_file": "/path/to/document.docx",
"pdf_output": "/path/to/output.pdf"
}


### PlantUML渲染器

#### 渲染图```json
{
"input": "participant User\nUser -> Server: Request\nServer --> User: Response",
"output_path": "/path/to/save/diagram.png"
}

(注: input 也可以是通往 .puml 文件)

美人鱼渲染器

渲染美人鱼图表```json

{
"mermaid_code": "graph TD;\n A-->B;\n A-->C;\n B-->D;\n C-->D;",
"output_path": "/path/to/save/mermaid.png",
"theme": "default" // Optional, e.g., "default", "dark", "neutral", "forest"
}


## 发展

### 添加新的MCP服务器

1. 为您的MCP创建一个新目录(例如。, `my_new_mcp`).
1. 在目录中,创建:
- `pyproject.toml`:定义项目元数据、依赖关系和脚本
入口点(例如。, `[project.scripts]` 剖面图
`my_new_mcp = "my_new_mcp:main"`).
- `pyrightconfig.json`:(可选)用于类型检查。
- 你的主Python文件(例如。, `my_new_mcp.py`):实现MCP逻辑
使用 `mcp` 库(见下面的模板)。
1. 实现所需的类和函数(`serve`, `list_tools`,
`call_tool`).

基本模板(`my_new_mcp.py`):```python
import json
import logging
import asyncio
from typing import List, Dict, Any, Optional
# Assuming mcp library is installed or available
# from mcp import Server, Tool, TextContent, stdio_server
# Placeholder imports if mcp library structure is different
from typing import Protocol # Using Protocol as placeholder

# Placeholder definitions if mcp library isn't directly importable here
class Tool(Protocol):
name: str
description: str
inputSchema: dict

class TextContent(Protocol):
type: str
text: str

class Server:
def __init__(self, name: str): pass
def list_tools(self): pass # Decorator
def call_tool(self): pass # Decorator
def create_initialization_options(self): pass
async def run(self, read_stream, write_stream, options): pass

# Placeholder context manager
class stdio_server:
async def __aenter__(self): return (None, None) # Dummy streams
async def __aexit__(self, exc_type, exc, tb): pass

# Pydantic is often used for schema definition
# from pydantic import BaseModel
# class MyInput(BaseModel):
#     param1: str
#     param2: int

class MyInputSchema: # Placeholder if not using Pydantic
@staticmethod
def model_json_schema():
return {"type": "object", "properties": {"param1": {"type": "string"}, "param2": {"type": "integer"}}, "required": ["param1", "param2"]}

class MyTools:
TOOL_NAME = "my.tool"

class MyService:
def __init__(self):
# Initialize resources if needed
pass

def my_function(self, param1: str, param2: int) -> dict:
# Implement your tool functionality
logging.info(f"Running my_function with {param1=}, {param2=}")
# Replace with actual logic
result_content = f"Result: processed {param1} and {param2}"
return {"content": result_content}

async def serve() -> None:
logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s')
server = Server("mcp-my-service")
service = MyService()

@server.list_tools()
async def list_tools() -> list[Tool]:
logging.info("list_tools called")
return [
Tool(
name=MyTools.TOOL_NAME,
description="Description of my tool",
# Use Pydantic's schema or manually define
inputSchema=MyInputSchema.model_json_schema(),
),
]

@server.call_tool()
async def call_tool(name: str, arguments: dict) -> list[TextContent]:
logging.info(f"call_tool called with {name=}, {arguments=}")
try:
if name == MyTools.TOOL_NAME:
# Add validation here if not using Pydantic
param1 = arguments.get("param1")
param2 = arguments.get("param2")
if param1 is None or param2 is None:
raise ValueError("Missing required arguments")

result = service.my_function(param1, int(param2)) # Ensure type conversion if needed
logging.info(f"Tool executed successfully: {result=}")
return [TextContent(type="text", text=json.dumps(result))] # Return JSON string
else:
logging.warning(f"Unknown tool requested: {name}")
raise ValueError(f"Unknown tool: {name}")
except Exception as e:
logging.error(f"Error executing tool {name}: {e}", exc_info=True)
# Return error as JSON
error_payload = json.dumps({"error": str(e)})
return [TextContent(type="text", text=error_payload)]

options = server.create_initialization_options()
logging.info("Starting MCP server...")
async with stdio_server() as (read_stream, write_stream):
await server.run(read_stream, write_stream, options)
logging.info("MCP server stopped.")

def main():
# Entry point defined in pyproject.toml `[project.scripts]`
try:
asyncio.run(serve())
except KeyboardInterrupt:
logging.info("Server interrupted by user.")

if __name__ == "__main__":
# Allows running directly via `python my_new_mcp.py` for debugging
main()

测试

从根目录使用pytest运行测试:bash pytest tests/

(确保安装了测试依赖项,可能是通过
uv pip install pytest 或通过添加 pytest 到其中一个中的开发依赖项
这 pyproject.toml 文件)。

许可证

MIT许可证

贡献

欢迎投稿!请随时提交拉取请求。

常见问题

7 问
答案由本站依据条目字段整理,不引用上游原文
Userful Mcps 怎么安装?

在客户端按下面的安装命令接入:pip install uv。装完在客户端配置里引用同一个包或端点。

Userful Mcps 怎么在客户端里配置?

它的传输方式未标注,在客户端 MCP 配置里按官方文档填写启动命令和参数,保存后重启客户端生效。

Userful Mcps 收费吗?

本站不代收费用,也没有标注具体价格。是否收费取决于服务本身和背后的接口额度,正式使用前按官方说明确认。

Userful Mcps 需要 API Key 吗?

资料标注为无需认证,装好就能连;如果实际调用时报鉴权错误,按官方文档补上凭据。

Userful Mcps 能提供哪些能力?

资料显示约 7 个工具;能力标签包括 自动化处理、Python、开发工具。具体工具清单以官方文档为准。

Userful Mcps 需要什么运行环境?

属于本地进程,需要在本机装好运行环境。

Userful Mcps 是本地还是远程?

它是本地进程(stdio),由客户端在本机拉起。传输方式为stdio · 本地进程。

热门专题

按标签挑服务器
全部专题 →

服务器信息以作者仓库与官方文档为准;分类、传输方式与鉴权方式的中文说明为中文整理,最近核验 2026-05-18。