OpenAPI 🫳🎤💥 的 MCP 生成器
概览
是一款为任何具有OpenAPI规范的Web应用提供模型上下文协议(MCP)服务器的工具。你可以使用emcee将Claude Desktop及其他应用连接到外部工具和数据服务,类似于ChatGPT插件。 如果你用的是macOS并且安装了Homebrew,可以很快上线。 确保你安装了Claude Desktop。 要配置 Claude Desktop 以配合主持人使用: 1. 打开 Claude 桌面设置(⌘,) 2.选择侧边栏中的“开发者”部分 3.点击“编辑配置”打开配置文件 配置文件应位于应用支持目录中。您也可以直接在VSCode中通过以下方式打开: 添加以下配置以添加 weather.gov MCP服务器: 保存文件后,退出并重新打开 Claude。你现在应该会在聊天框右下角看到 🔨57。点击它可以看到通过 MCP 提供给 Claude 的所有工具列表。
概述(AI 翻译)
emcee 是一个提供[模型上下文协议(MCP)][mcp]服务器的工具 适用于任何具有[OpenAPI][OpenAPI]规范的网页应用。 你可以用emcee连接[Claude Desktop][claude]和[其他应用][mcp-clients] 对外部工具和数据服务, 类似于[ChatGPT插件][ChatGPT-plugins]。
快速开始
如果你用的是macOS并且安装了[Homebrew][homebrew], 你可以很快启动。
确保你安装了Claude Desktop。
要配置 Claude Desktop 以配合主持人使用:
- 打开Claude桌面设置(⌘, )
- 在侧边栏选择“开发者”部分
- 点击“编辑配置”以打开配置文件
配置文件应位于应用支持目录中。 你也可以直接在VSCode中打开它,方法如下:
添加以下配置以添加 weather.gov MCP服务器:
保存文件后,退出并重新打开Claude。 你现在应该会在聊天框的右下角看到🔨57。 点击它查看通过MCP向Claude提供的所有工具列表。
重新开个聊天,问问你所在地区的天气情况。
俄勒冈州波特兰的天气怎么样?
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
emcee
emcee is a tool that provides a [Model Context Protocol (MCP)][mcp] server for any web application with an [OpenAPI][openapi] specification. You can use emcee to connect [Claude Desktop][claude] and [other apps][mcp-clients] to external tools and data services, similar to [ChatGPT plugins][chatgpt-plugins].
Quickstart
If you’re on macOS and have [Homebrew][homebrew] installed, you can get up-and-running quickly.
# Install emcee
brew install mattt/tap/emcee
Make sure you have Claude Desktop installed.
To configure Claude Desktop for use with emcee:
- Open Claude Desktop Settings (⌘,)
- Select the “Developer” section in the sidebar
- Click “Edit Config” to open the configuration file
The configuration file should be located in the Application Support directory. You can also open it directly in VSCode using:
code ~/Library/Application\ Support/Claude/claude_desktop_config.json
Add the following configuration to add the weather.gov MCP server:
{
"mcpServers": {
"weather": {
"command": "emcee",
"args": ["https://api.weather.gov/openapi.json"]
}
}
}
After saving the file, quit and re-open Claude. You should now see 🔨57 in the bottom right corner of your chat box. Click on that to see a list of all the tools made available to Claude through MCP.
Start a new chat and ask it about the weather where you are.
What’s the weather in Portland, OR?
Claude will consult the tools made available to it through MCP and request to use one if deemed to be suitable for answering your question. You can review this request and either approve or deny it.
If you allow, Claude will communicate with the MCP and use the result to inform its response.
Why use emcee?
MCP provides a standardized way to connect AI models to tools and data sources. It’s still early days, but there are already a variety of [available servers][mcp-servers] for connecting to browsers, developer tools, and other systems.
We think emcee is a convenient way to connect to services that don’t have an existing MCP server implementation — especially for services you’re building yourself. Got a web app with an OpenAPI spec? You might be surprised how far you can get without a dashboard or client library.
Installation
Installer Script
Use the [installer script][installer] to download and install a
安装
docker run -it ghcr.io/mattt/emcee配置
{
"mcpServers": {
"weather": {
"command": "emcee",
"args": ["https://api.weather.gov/openapi.json"]
}
}
}