
🧠 一个强大且功能齐全的MCP服务器,用于与由@Openapi®驱动的AI代理互动
概览
🔐 Openapi® MCP 官方的 Python MCP SDK 和 OpenAPI® 现成运行的 MCP 服务器 欢迎来到,这是官方的 openapi.com MCP SDK。它以Python包的形式在PyPI上发布,并且有两种使用方式: - — 只需一个命令即可直接从包运行MCP网关,无需克隆或设置。- — 在您自己的项目中导入openapi_mcp_sdk,构建自定义MCP服务器,将 openapi.com API包裹在你自己的逻辑、工具或认证层之上。 所有配置均通过环境变量完成。启动服务器无需环境变量——默认配置适合本地使用。 服务器需要存储返回二进制文档(如公司官方文档)的 API 文件。存储后端可配置: 用于在多个服务器实例间共享异步回调结果。 请参阅文档/env/,获取每个环境的配置指南(本地、Docker、AWS、GCP、Kubernetes)。
概述(AI 翻译)
🔐 Openapi® MCP 官方的 Python MCP SDK 和 OpenAPI® 现成运行的 MCP 服务器
概述
欢迎来到 openapi-mcp-sdk,这是官方的 openapi.com MCP SDK。
它以 Python 包的形式在 PyPI 上发布,
可以有两种用途:
- 现成服务器 — 直接从包中运行MCP网关,使用 单一命令,无需克隆或设置。
- Python 库 — 在您自己的项目中导入
openapi_mcp_sdk以构建 自定义MCP服务器,用你自己的逻辑、工具或认证包裹 openapi.com API。 在上面叠加。
环境变量
所有配置都通过环境变量完成。没有条件 启动服务器——默认设置适合本地使用。
核心
| 变量 | 默认 | 描述 |
|---|---|---|
MCP_PORT |
8080 |
服务器监听的HTTP端口 |
MCP_ENV |
production |
运行环境:dev |staging |production |
MCP_BASE_URL |
http://localhost:8080 |
该服务器的公共URL(用于构建回调和文件下载URL) |
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Overview
Welcome to openapi-mcp-sdk, this is the official openapi.com MCP SDK.
It ships as a Python package on PyPI and
can be used in two ways:
- Ready-to-use server — run the MCP gateway directly from the package with a single command, no cloning or setup required.
- Python library — import
openapi_mcp_sdkin your own project to build a custom MCP server that wraps openapi.com APIs with your own logic, tools, or auth layer on top.
Environment variables
All configuration is done through environment variables. None are required to start the server — defaults are suitable for local use.
Core
| Variable | Default | Description |
|---|---|---|
MCP_PORT |
8080 |
HTTP port the server listens on |
MCP_ENV |
production |
Runtime environment: dev | staging | production |
MCP_BASE_URL |
http://localhost:8080 |
Public URL of this server (used to build callback and file download URLs) |
安装
uvx openapi-mcp-sdk server