Token导航 LogoToken导航

MCP Server · 运维云端

Epr MCP Python

EPR MCP Python是一个用于事件溯源注册服务器的Python MCP服务器,提供MCP工具和OpenAPI端点以与事件溯源注册表交互。

stdio官方级别未说明来源级核验工具 10
API集成PythonPython服务器Token认证

快速开始

作者 / 组织
xbcsmith
提供方
xbcsmith
运行时
Python

工具数量

10

来源目录标注

资源数量

0

来源目录标注

提示词数量

0

来源目录标注

GitHub Star

0

仓库热度

收录来源

1 个

MCP World

选型结论

Epr MCP Python 属于运维云端类 MCP Server,公开资料标注 10 个工具,通过stdio 本地进程接入,客户端适配情况以官方文档为准,有可以直接复制的安装命令;接入前要先准备 访问 Token。

分类

运维云端

传输方式

stdio

认证方式

访问 Token

部署方式

公开资料未说明

安装与配置

安装命令

python3 -m venv .venv/epr-mcp-python

公开命令不是通用的启动方式,拼不出可靠配置示例;请在客户端 MCP 配置里按官方文档填写 command 和 args。

上手步骤

  1. 1

    准备运行环境

    stdio 服务在本地起进程,需要先装好 Python,再按安装命令拉取依赖。

  2. 2

    安装服务

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

  3. 3

    写入客户端配置

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

  4. 4

    验证是否可用

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

接入前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

详细介绍

EPR-MCP-Python

概述

EPR MCP Python 是一个用于事件溯源注册表(Event Provenance Registry)服务器的 Python MCP 服务器。

发展

本地开发

git clone git@github.com:xbcsmith/epr-mcp-python.git
cd epr-mcp-python

python3 -m venv .venv/epr-mcp-python
source .venv/epr-mcp-python/bin/activate

pip install -e .

Docker 开发

选项1:Docker Compose(推荐)
git clone git@github.com:xbcsmith/epr-mcp-python.git
cd epr-mcp-python

# Copy and configure environment
cp .env.example .env
# Edit .env with your EPR_URL and EPR_TOKEN

# Start with Docker Compose
docker-compose up -d

# View logs
docker-compose logs -f epr-mcp-server
选项2:直接运行Docker
git clone git@github.com:xbcsmith/epr-mcp-python.git
cd epr-mcp-python

# Build the Docker image
docker build -t epr-mcp-server .

# Run with environment variables
docker run -d \
  --name epr-mcp-server \
  -p 8000:8000 \
  -e EPR_URL=http://host.docker.internal:8042 \
  -e EPR_TOKEN=your-epr-api-token \
  -e EPR_DEBUG=false \
  epr-mcp-server

# View logs
docker logs -f epr-mcp-server

# Stop the container
docker stop epr-mcp-server
docker rm epr-mcp-server
Docker 运行选项

基本运行:

docker run -p 8000:8000 \
  -e EPR_URL=http://host.docker.internal:8042 \
  -e EPR_TOKEN=your-token \
  epr-mcp-server

对于原木的体积:

docker run -p 8000:8000 \
  -v $(pwd)/logs:/app/logs \
  -e EPR_URL=http://host.docker.internal:8042 \
  -e EPR_TOKEN=your-token \
  epr-mcp-server

交互模式(用于调试):

docker run -it --rm \
  -p 8000:8000 \
  -e EPR_URL=http://host.docker.internal:8042 \
  -e EPR_TOKEN=your-token \
  epr-mcp-server

重要提示: 在Docker中运行时,EPR_URL必须指向正确的地址:

  • 如果EPR服务器运行在主机上: EPR_URL=http://host.docker.internal:8042
  • 如果EPR服务器在容器中运行: EPR_URL=http://container-name:8042

看 以获取详细的 Docker Compose 文档。

开发依赖项

pip install -e .[lint,test,build]

Makefile

install         Installs epr-mcp-python into a virtualenv called epr-mcp
lint            Run linter (requires ruff)
tests           Run tests
release         Run tox
wheel           Create an sdist bdist_wheel
clean           Cleanup everything

使用方法

EPR MCP服务器提供了MCP工具和OpenAPI端点,用于与事件溯源注册表进行交互。

MCP 工具

服务器根据OpenAPI规范自动生成MCP工具:

  • fetchEvent - 通过ID获取事件
  • fetchReceiver - 通过ID获取事件接收器
  • fetchGroup - 通过ID获取事件接收器组
  • createEvent - 创建一个新事件
  • createReceiver - 创建一个新的事件接收器
  • createGroup - 创建一个新的事件接收器组
  • searchEvents - 搜索活动
  • searchReceivers - 搜索事件接收器
  • searchGroups - 搜索事件接收器组
  • healthCheck - 健康检查端点

OpenAPI 端点

当服务器运行时,可访问以下OpenAPI端点:

  • 开放API规范:

- YAML 格式: http://localhost:8000/openapi.yaml - JSON 格式: http://localhost:8000/openapi.json

  • API 文档:

- Swagger UI: http://localhost:8000/docs

  • 健康检查:

- http://localhost:8000/health

示例用法

# Using MCP tools
mcp.call_tool('fetchEvent', {'id': 'event-123'})

mcp.call_tool('searchEvents', {
    'name': 'deployment', 
    'version': '1.0.0'
})

mcp.call_tool('createEvent', {
    'name': 'test-event',
    'version': '1.0.0',
    'release': '1.0.0',
    'platform_id': 'linux',
    'package': 'test-package',
    'description': 'Test event',
    'event_receiver_id': 'receiver-123',
    'success': True,
    'payload': {'key': 'value'}
})

VSCode

HTTP传输配置
"mcp": {
	"servers": {
		"epr-mcp-server": {
			"type": "http",
			"url": "http://localhost:8000/mcp"
		}
	}
}
Docker 配置(备选方案)

如果通过Docker运行,您可以使用以下配置:

"mcp": {
	"servers": {
		"epr-mcp-server": {
			"command": "docker",
			"args": [
				"run",
				"-d",
				"--rm",
				"--network=host",
				"-e",
				"EPR_URL=${input:epr_url}",
				"-e",
				"EPR_TOKEN=${input:epr_token}",
				"epr-mcp-python:latest"
			],
			"type": "http",
			"url": "http://localhost:8000/mcp"
		}
	},
	"inputs": [
		{
			"type": "promptString",
			"id": "epr_token",
			"description": "EPR API Token",
			"password": true
		},
		{
			"type": "promptString",
			"id": "epr_url",
			"description": "EPR URL",
			"default": "http://localhost:8042",
			"password": false
		}
	]
}
本地开发配置

对于本地开发,请先启动服务器,然后使用以下配置:

"mcp": {
	"servers": {
		"epr-mcp-server": {
			"type": "http",
			"url": "http://localhost:8000/mcp",
			"env": {
				"EPR_URL": "${input:epr_url}",
				"EPR_TOKEN": "${input:epr_token}"
			}
		}
	},
	"inputs": [
		{
			"type": "promptString",
			"id": "epr_token",
			"description": "EPR API Token",
			"password": true
		},
		{
			"type": "promptString",
			"id": "epr_url",
			"description": "EPR URL",
			"default": "http://localhost:8042",
			"password": false
		}
	]
}
启动服务器

在使用VSCode集成之前,请先启动EPR MCP服务器:

# Set environment variables
export EPR_URL="http://your-epr-server:8042"
export EPR_TOKEN="your-api-token"

# Start the server
python -m epr_mcp.main start

服务器将在 http://localhost:8000/mcp 用于MCP连接和 http://localhost:8000/docs 为API文档。

运行MCP检查器
npx @modelcontextprotocol/inspector

故障排除

遇到连接问题?请参阅 故障排除指南 以获取常见问题的详细解决方案。

Docker的快速修复方案:

  • 连接失败错误:请使用 EPR_URL=http://host.docker.internal:8042 在你的 .env 文件
  • 检查EPR服务器是否正在运行: curl http://localhost:8042/health
  • 查看日志: docker-compose logs -f epr-mcp-server

文档

工具与能力

工具数量

10

资源数量

0

提示词数量

0

能力标签

事件溯源Python本地部署Python服务器MCP工具OpenAPI

数量来自来源目录的标注,具体工具清单以官方文档为准。

典型使用场景

看服务状态

查询容器、日志和监控指标,定位异常。

执行部署变更

在权限范围内触发发布、回滚和环境切换。

核对资源用量

汇总用量,找出闲置和超额的部分。

选择建议

值得选的地方

  • 工具数量 10 个,一次接入能覆盖的操作比单点工具更全。
  • 有现成的安装命令,不用自己找入口,照着跑就能起服务。
  • 公开说明写得比较完整,接入前能看清能力边界。

先想清楚的地方

  • stdio 方式要求本地装好 Python,换机器要重新装一遍。
  • 需要自备访问 Token,没有凭据没法直接试。
  • 第三方目录整理,版本更新和行为细节以官方仓库为准。

更适合

  • 需要在运维云端场景里让模型直接调用外部能力的人。
  • 想先快速试一下、能接受在本地跑服务的人。

不太适合

  • 完全不想在本地装环境的人。
  • 暂时拿不到访问 Token的人。
  • 需要厂商级 SLA 和技术支持的生产环境。

同类对比

5 个同类
MCP Server工具数传输方式安装命令收录来源最后核验
Epr MCP Python

MCP World · 本页

10stdio有1 个2026-05-17
Ui Tars Desktop 8a825770

MCP World

0stdio有1 个2026-05-17
Elie222 MCP

MCP World

0未说明未标注1 个2026-05-17
Arizeai Phoenix MCP

MCP World

0stdio有3 个2026-05-17
Unity MCP 87ee506e

MCP World

42HTTP有2 个2026-05-17

按同分类和工具数量挑出最接近的几条,字段以各自详情页为准。

常见问题

5 条

Epr MCP Python 怎么安装?

公开资料给出的安装命令是 python3 -m venv .venv/epr-mcp-python,运行环境为 Python。装完后按客户端要求写进 MCP 配置,重启客户端生效。

Epr MCP Python 怎么在 Claude Desktop、Cursor 里配置?

它是stdio 本地进程,客户端配置里要写启动命令和参数,运行环境是 Python;保存后完全退出客户端再打开,配置才会生效。

Epr MCP Python 收费吗?

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

Epr MCP Python 需要 API Key 吗?

公开资料标注的认证方式是访问 Token,也就是要先拿到凭据才能连上;凭据只填在自己本地的配置里,不要写进公开仓库。

Epr MCP Python 支持哪些客户端?

公开资料没有标注具体客户端;能配置本地 MCP 命令的客户端都能接,配置方式参照官方文档。

来源信息

继续浏览同类 MCP