Echo MCP Server
一个简单的MCP (Model Context Protocol) 服务器,提供echo功能:输入什么就返回什么。
项目信息
- 作者: Bach Studio
- GitHub: https://github.com/BACH-AI-Tools/mcp-echo
- PyPI: https://pypi.org/project/mcp-echo/
功能特性
- echo工具: 接收一个消息参数,并原样返回该消息
- 简单易用,适合测试MCP连接
- 支持命令行直接运行
安装
从 PyPI 安装(推荐)
pip install mcp-echo
从源码安装
git clone https://github.com/BACH-AI-Tools/mcp-echo.git
cd mcp-echo
pip install -e .
使用方法
命令行运行
安装后,可以直接使用命令行启动服务器:
mcp-echo
在 Cherry Studio 中使用
- 打开 Cherry Studio
- 进入设置 -> MCP服务器配置
- 添加新的MCP服务器配置:
{
"mcpServers": {
"echo": {
"command": "mcp-echo"
}
}
}
或者使用完整Python路径(如果命令行不可用):
{
"mcpServers": {
"echo": {
"command": "python",
"args": [
"-m",
"mcp_echo.server"
]
}
}
}
在 Claude Desktop 中使用
编辑配置文件:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
添加配置:
{
"mcpServers": {
"echo": {
"command": "mcp-echo"
}
}
}
使用示例
在支持MCP的AI助手中,你可以这样使用echo工具:
- "请使用echo工具返回'Hello World'"
- "用echo工具测试一下:这是一条测试消息"
工具说明
echo
- 描述: 输入什么就返回什么
- 参数:
message(string, 必需): 要回显的消息内容
- 返回: 回显的消息文本,格式为 "Echo: {message}"
开发
克隆仓库
git clone https://github.com/BACH-AI-Tools/mcp-echo.git
cd mcp-echo
安装开发依赖
pip install -e .
本地测试
python -m mcp_echo.server
构建包
python -m build
技术栈
- Python 3.10+
- MCP SDK (mcp>=0.9.0)
许可证
MIT License - 详见 LICENSE 文件
贡献
欢迎提交 Issue 和 Pull Request!
联系方式
- GitHub Issues: https://github.com/BACH-AI-Tools/mcp-echo/issues
- 组织主页: https://github.com/BACH-AI-Tools
Made with ❤️ by Bach Studio
Metadata
Release files for mcp-echo 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mcp_echo-0.2.0.tar.gz | 7.6 kB | Without provenance | Details for mcp_echo-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mcp_echo-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for mcp_echo-0.2.0-py3-none-any.whl |
Total release size: 14.5 kB
Release files / mcp_echo-0.2.0.tar.gz
| Download URL | mcp_echo-0.2.0.tar.gz |
|---|---|
| Size | 7.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5dd09d79b00da349f2918ace7052c8b31084945fa3177b04d4fecd598fdedf01
|
|
BLAKE2b-256 checksum How to use checksums |
0fa961c7c32606ca2697c37f572a6df11f7175f315350ab9258cda13964ede41
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|
Release files / mcp_echo-0.2.0-py3-none-any.whl
| Download URL | mcp_echo-0.2.0-py3-none-any.whl |
|---|---|
| Size | 6.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cfef7247455d53fc942bef5ec1d3e0d626628b272a190d51012222f0069e5f5a
|
|
BLAKE2b-256 checksum How to use checksums |
5323c03d253a1def5da4b876b51ddf3ab3a3bb3dfb5840fda2bb382c81bbf86f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|
Security for mcp-echo 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.