
Ovh Api Mcp
io.github.davidlandais由 GitHub 账号 davidlandais 发布v0.3.0更新于 Oct 24, 2026
MCP server for the OVH API. Explore and call any OVH endpoint via sandboxed JS.
概览
让助手通过编写沙箱化 JavaScript 来浏览 OVH API 规范并调用任意 OVH 云端点。
- 可以做什么
- 提供两个 MCP 工具:search 在已加载的 OVH OpenAPI 规范上运行 JavaScript,用于查找端点、结构和参数;execute 调用 OVH API v1 和 v2 端点,并透明处理身份验证。JavaScript 在带内存、栈和超时限制的 QuickJS 沙箱中运行,每次 API 调用在执行前都会对照规范进行校验。支持 stdio 和 Streamable HTTP 传输,并在本地缓存合并后的规范。
- 适用场景
- 适合助手需要查看或管理 OVH 云资源(如 DNS 区域、域名及其他服务),或在调用前先了解有哪些端点可用时使用。它面向本地开发用途,而非生产或共享部署。
- 运行要求
- 以本地进程方式运行,可使用 Docker 镜像或 macOS、Linux 的预编译二进制文件。调用 API 需要 OVH 凭据:OVH_APPLICATION_KEY、OVH_APPLICATION_SECRET 和 OVH_CONSUMER_KEY,或改用 OAuth2 服务账号的 OVH_CLIENT_ID 和 OVH_CLIENT_SECRET。OVH_ENDPOINT 选择区域(eu、ca 或 us),OVH_SERVICES 限定加载哪些服务。需要访问 OVH API 的网络连接。
安装
在 SourceWeft 中
- 打开 控制台中的 Ovh Api Mcp,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
ovh-api-mcp
[CI] [License: MIT] [Rust] [MCP] [Status]
A native Model Context Protocol (MCP) server that gives LLMs full access to the OVH API (v1 and v2). Built in Rust for minimal footprint (~19 MB Docker image, ~1.2 MiB RAM).
[ovh-api-mcp MCP server]Early Release — Designed for local development use. Security hardening has been applied (sandboxed execution, spec validation, secret protection), but the server has not been battle-tested at scale. Do not expose it to the public internet. Feedback and bug reports are welcome.
How it works
The server exposes two MCP tools:
The LLM writes JavaScript that runs inside a sandboxed QuickJS engine with resource limits (memory, CPU timeout, stack size). Every API call is validated against the loaded OpenAPI spec before execution.
The server supports two transport modes:
- HTTP (Streamable HTTP) — for web-based clients and Docker deployments
- stdio — for direct integration with Claude Desktop, Cursor, and MCP inspectors
OVH credentials are optional at startup: the server starts and exposes its tools even without API keys. Tools return a clear error when called without credentials.
Quick start
With stdio (Claude Desktop / Cursor)
Add to your MCP client configuration:
With Docker
From source
Pre-built binaries
Download from GitHub Releases — available for macOS (x86_64, aarch64) and Linux (x86_64 musl).
Claude Code configuration (HTTP mode)
The
Authorizationheader is required to bypass Claude Code's OAuth discovery. See claude-code#2831.
OVH credentials
You need three values: an application key, an application secret, and a consumer key.
Go to the token creation page for your region, log in with your OVH account, set the permissions and validity, and you'll get all three keys at once:
For full API access, set all four methods (GET, POST, PUT, DELETE) with path /*.
OAuth2 authentication (service accounts)
As an alternative to API keys, you can use OVH service accounts with OAuth2 client credentials:
Service accounts are created via the OVH API (POST /me/api/oauth2/client with flow: CLIENT_CREDENTIALS). You must then create an IAM policy (POST /v2/iam/policy) to grant API permissions to the service account. See the OVHcloud documentation for details.
The server auto-detects the auth mode from environment variables. Do not set both API keys and OAuth2 credentials at the same time.
CLI options
Usage examples
Once connected, the LLM can use the tools like this:
Search for DNS endpoints:
List your domain zones:
Get DNS records for a domain:
Security
- Sandboxed execution — JavaScript runs in QuickJS with memory limit (64 MiB), stack limit (1 MiB), and execution timeout (10s for search, 30s for execute)
- Spec-validated API calls — every
ovh.request()call is matched against the loaded OpenAPI spec; unknown endpoints or wrong HTTP methods are rejected - Path injection prevention — API paths containing
?,#, or..are rejected - Secret protection —
app_secretandconsumer_keyare stored usingsecrecy(zeroized on drop) - No HTTP redirects — prevents credential leakage to third-party domains
- Non-root container — Docker image runs as unprivileged user
Architecture
License
MIT — David Landais
来源:README.md,提交 eb7ac56
工具
0版本历史
1- v0.3.0最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分