Microsoft事件MCP服务器
      
一个MCP服务器,它公开 Microsoft事件API 作为人工智能助手的工具。直接从Claude、Cursor或任何兼容MCP的客户端搜索、过滤和分析Microsoft事件(会议、研讨会、网络研讨会)。
→ 着陆页
*动画聊天演示-也可作为 交互式SVG*
______________________________________________________________________
特性
- 搜索事件 --按主题、产品、地区、格式和受众筛选的全文搜索
- 活动详情 --按ID检索完整的事件信息
- 筛选器发现 --列出所有可用的过滤器类别和值以及事件计数
- 事件统计 --按国家、城市、格式、主题等汇总统计数据
- 多语言环境 --支持
de-de,en-us、和其他Microsoft API语言环境 - 内存缓存 --事件在第一次获取时被索引,以便后续快速查找
MCP工具
| 工具 | 说明 |
|---|---|
search_events | 使用可选过滤器和自由文本查询搜索事件 |
get_event_details | 按ID获取特定事件的完整详细信息 |
list_filters | 列出所有可用的过滤器类别及其计数 |
get_event_stats | 获取事件的汇总统计信息 |
快速开始
通过uvx安装(推荐)
无需克隆或pip——只需将其添加到您的Claude Desktop MCP配置中即可(~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"microsoft-events": {
"command": "uvx",
"args": ["msevent-mcp"]
}
}
}或者将其添加到Claude Code中:
claude mcp add microsoft-events uvx msevent-mcpuvx 包含在 uv。它在隔离的环境中运行服务器,并自动保持其最新状态。
从源代码安装(开发)
git clone https://github.com/trsdn/msevent-mcp.git
cd msevent-mcp
pip install -r requirements.txt
python mcp_server.py对于源代码安装,请使用MCP配置中的完整路径:
{
"mcpServers": {
"microsoft-events": {
"command": "python3",
"args": ["/path/to/msevent-mcp/mcp_server.py"]
}
}
}用法示例
搜索德国的AI事件
search_events(filters="topic:ai,region:europe", locale="de-de")获取所有可用筛选器
list_filters(locale="en-us")获取事件统计信息
get_event_stats(filters="format:digital")测试
运行单元测试(不需要网络):
pip install pytest pytest-cov
python3 -m pytest test_mcp_server.py -v -m "not live"运行覆盖率报告:
python3 -m pytest test_mcp_server.py -m "not live" --cov=mcp_server --cov-report=term-missing运行API实时测试(需要网络):
python3 -m pytest test_mcp_server.py -v -m "live"测试覆盖率
Name Stmts Miss Cover
---------------------------------------------
mcp_server.py 95 1 99%建筑
mcp_server.py # MCP server with 4 tools
test_mcp_server.py # 50 unit tests + 4 live API tests
requirements.txt # Dependencies (fastmcp)
pyproject.toml # Package config (uvx-installable)
pytest.ini # Test configuration
docs/
index.html # GitHub Pages landing page
demo.svg # Animated SVG chat simulation
demo.gif # Animated GIF for README / social media服务器使用 urllib.request 用于HTTP调用(除了FastMCP之外没有其他依赖关系),并在进程的生命周期内维护内存中的事件缓存。
API 参考
服务器与通信 Microsoft事件API 通过POST请求。不需要API密钥。
筛选器类别
| 类别 | 示例值 |
|---|---|
topic | ai, security, cloud, data |
product | azure, m365, dynamics |
region | europe, north-america, asia |
format | digital, in-person, hybrid |
audience | developer, it-pro, business |
______________________________________________________________________
