oec.sh MCP server
OfficialAllows reading Odoo logs, updating modules, and managing Odoo environments on oec.sh, including deploying, restarting, and taking backups.
Allows reading the newest lines of an environment's PostgreSQL log live from its server on oec.sh.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@oec.sh MCP servershow me the latest Odoo logs for my production environment"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
oec.sh MCP server
Let an AI assistant (Claude Code, Claude Desktop, Cursor and other MCP clients) work with your oec.sh organization: look at servers, projects and environments, read an environment's Odoo logs and live metrics, deploy, restart, update modules, take backups and follow a task to its end.
The server adds no powers of its own. Every tool is one or two calls to the oec.sh Public API made with your API key, so the key's type (read only or full access), its scope (organization or one project), your plan, your quotas and the audit log all apply exactly as they do for any other API client.
Requirements: an oec.sh organization on the Starter plan or higher, and an API key from Settings > API Keys in the dashboard. Local mode needs Node.js 22 or newer.
Choose a key
Key | Prefix | What the assistant can do |
Read only (recommended to start) |
| Read tools only |
Full access |
| Read tools and write tools (deploy, restart, create...) |
A project-scoped key limits the assistant to one project. Use one whenever the assistant only needs to work on one project.
The server reads the key's type from its prefix and only offers the tools that key can use.
Related MCP server: Odoo Projects MCP
Install: local mode (stdio)
The MCP client starts the server on your computer. Your key stays on your computer and is sent only to api.oec.sh.
Claude Code
claude mcp add oecsh -e OECSH_API_KEY=oec_live_ro_your_key -- npx -y @oecsh/mcp-serverClaude Desktop
Add to claude_desktop_config.json (Settings > Developer > Edit Config), then restart Claude Desktop:
{
"mcpServers": {
"oecsh": {
"command": "npx",
"args": ["-y", "@oecsh/mcp-server"],
"env": { "OECSH_API_KEY": "oec_live_ro_your_key" }
}
}
}Cursor
Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (one project):
{
"mcpServers": {
"oecsh": {
"command": "npx",
"args": ["-y", "@oecsh/mcp-server"],
"env": { "OECSH_API_KEY": "oec_live_ro_your_key" }
}
}
}Do not commit a file that contains your key.
Settings (local mode)
Variable | Meaning |
| Your API key. Required. |
| Opt-in tools, comma separated: |
| API address. Default |
Hosted mode (streamable HTTP)
https://mcp.oec.sh/mcp. Nothing to install: your client sends your API key with every request in the Authorization header, the server forwards it to the API for that request only, and keeps nothing.
Claude Code:
claude mcp add --transport http oecsh https://mcp.oec.sh/mcp \
--header "Authorization: Bearer oec_live_ro_your_key"Cursor (mcp.json):
{
"mcpServers": {
"oecsh": {
"url": "https://mcp.oec.sh/mcp",
"headers": { "Authorization": "Bearer oec_live_ro_your_key" }
}
}
}To turn on opt-in tools in hosted mode, add the header X-OECSH-Allow: destructive (or backup-download, or both, comma separated).
Clients that only connect through OAuth, such as claude.ai web connectors, cannot use the hosted server yet.
The hosted server at mcp.oec.sh passes your address to the API (it is configured with OECSH_MCP_PROXY_SECRET, see below), so the API's block on repeated refused keys counts your address, not the server's shared one. Rate limits are per API key either way.
Tools
Every tool name starts with oecsh_. List tools take limit (1 to 100, default 20) and cursor (the next_cursor of the previous page) and answer with items, count, total, has_more and next_cursor.
Read tools (any key)
Tool | What it does |
| Plan, limits and current usage |
| Servers, size, readiness |
| Live CPU, memory, disk and network of one of your own servers (not shared servers) |
| Projects |
| A project's environments, optionally by status |
| One environment with its health and last deploy |
| The newest lines (up to 1000) of an environment's Odoo or PostgreSQL log, read live from its server |
| Live CPU and memory of an environment's containers, and its disk sizes |
| An environment's deploy history |
| Any task's status and progress |
| Waits until a task finishes |
| A task's step log and error |
| An environment's backups; one backup |
| Outgoing webhooks and their recent deliveries |
Write tools (full-access key; none of them deletes data)
Tool | What it does |
| Pulls the branch and redeploys; can update modules |
| Restart, start, stop |
| Pull and restart, update all modules, or update some |
| Starts a manual backup |
| Projects (creating needs an organization-scoped key). Changing a project's repository or git provider is an opt-in tool |
| Environments |
oecsh_create_webhook and oecsh_rotate_webhook_secret return the webhook's signing secret, because the API shows it only once. The secret is then in your conversation transcript, and the tool result says so: if the transcript is shared or stored where others can read it, rotate the secret in the dashboard (Settings > Webhooks) and give the new one to the receiver yourself. Rotating it through the assistant would put the new secret in the transcript too.
Write tools that start work return a task_id; the assistant follows it with oecsh_wait_for_task. Deploy, restart, stop, quick update and the two update tools are marked destructive (they replace running code, take a site offline or overwrite settings), so clients that honour the hint ask before running them; the create tools and start are not.
Opt-in tools
Off unless you turn them on. Each is marked destructive, which is only a hint: most clients then ask for your approval, unless you have auto-approved the tool. Keep these tools out of your client's auto-approve or allow list.
They also take a confirm argument (confirm_environment_name for a restore) that must repeat the resource's name exactly, and the server checks it against the real resource before doing anything. For deleting a webhook or rotating its secret, the name is the webhook's URL. For creating a webhook, testing one, or changing its URL, it is the host the data goes to (for https://hooks.example.com/oec, type hooks.example.com), as the server reads it from the URL: in https://hooks.example.com@other.example/ that is other.example. Changing a webhook's other settings needs no confirm. The assistant is told to ask you for that name, but it can also read names through the list tools, so the argument alone cannot prove that you typed it. So when your client supports MCP elicitation (it can show you a form from the server), the server also asks you to type the name in your client's own prompt, which names the action and the resource, and goes ahead only if you accept and the name matches. Declining, or typing something else, changes nothing. Clients without elicitation, and the hosted server (which keeps no session, so it cannot ask), rely on the confirm argument alone.
Opt-in | Tools | Key |
|
| Full access (revoking keys and deleting projects: organization-scoped) |
|
| Any |
Creating, changing and testing webhooks are opt-in because a webhook sends oec.sh data to whatever HTTPS URL it names, and the test sends it at once: text that someone else wrote into a result (an Odoo log line, say) could ask the assistant to point one at their own address. Changing a project's repository or git provider (oecsh_update_project_repository) is opt-in for the same reason: every later deploy runs code from the new repository on your server, and the git provider decides which host your organization's git token is sent to. oecsh_update_project changes everything else about a project. Branch names (branch, default_branch) must be real branch names: ref paths such as refs/..., pull/... or merge-requests/..., bare commit ids and names starting with - are refused, so a deploy cannot pick up code from a fork's pull request.
oecsh_get_backup_download_links answers with a warning: anyone holding a link can download the whole database until it expires, and the links are now in the conversation transcript.
With a read-only key the server offers 19 tools (20 with backup-download). With a full-access key it offers 29, 40 with destructive, and 41 with both opt-ins.
oecsh_restore_backup overwrites an environment's database and files with a completed backup of that same environment (a safety backup of the current data is taken first) and returns a task to follow. The name to type, for a restore or for download links, is the environment's current name; for a stopped or broken environment, which the API does not list, it is the name recorded with the backup (see oecsh_get_backup). Restoring into another environment stays in the dashboard.
Server registration tokens are not available through this server.
Limits
Every API request counts against your key's rate limit: 120 reads and 20 writes a minute, counted separately.
Most tools make one or two API requests.
oecsh_get_backup_download_linksandoecsh_restore_backupmake three, and each other confirmed destructive tool two (it reads the resource first to check the name), except creating a webhook or changing its URL, which check the host in the URL given and make one.oecsh_get_runtime_logs,oecsh_get_environment_metricsandoecsh_get_server_metricsreach your server on every call, so the API allows 6 of each a minute per environment or server.oecsh_wait_for_taskpolls the task every 5 seconds for the first 30 seconds, then every 10 seconds, and never spends more than a fifth of the read limit the API reports for your key (with a limit of 20 a minute, one poll every 15 seconds). Each call waits up to 50 seconds, since many clients give up on a tool call after 60 seconds, and up to 45 seconds in hosted mode; the assistant calls it again while the task runs. In local mode it waits up to 10 minutes when the client asks for progress notes (it then sends one after every poll) or the assistant passes a longertimeout_seconds.When a limit is reached the tool says how long to wait, from the API's
Retry-After(or, without it, until the next full minute). A wait of 10 seconds or less is retried once by itself, andoecsh_wait_for_tasksits out a wait that fits in its time limit.If the answer to an action (deploy, restart, restore...) is lost on the network, the server asks once more with the same idempotency key, so the API returns the first answer instead of starting the action twice.
oecsh_get_task_logreturns up to 1000 lines of a task's own log;oecsh_get_runtime_logsreturns the Odoo or PostgreSQL log. Either is cut to its newest 60,000 characters (withtruncatedset), so one answer stays within what clients accept.Running, stopped, paused and errored environments are all visible. A deleted environment answers "not found"; its backups and tasks stay readable.
Each API request times out after 30 seconds. The hosted server accepts request bodies up to 1 MB.
Security notes
The key is checked for the right format before any call, sent only in the
Authorizationheader to the configured API, and removed from every output, error and log line. The server never prints it.The API address must use https (plain http only to
localhost), and the server never follows a redirect, so the key cannot be sent in clear text or replayed to another address.In hosted mode the API address is fixed by the server; a client cannot point your key at another host. Requests without a well-formed key are refused before the body is read, and a key the API has just refused is refused locally for 5 minutes. The API blocks an address for 15 minutes after 10 refused keys, so tool calls with keys the server has not yet seen working stop at 6 possible refusals until the API's count has run out; keys that worked recently are not held back. That count is kept per caller address when the server passes caller addresses to the API (
OECSH_MCP_PROXY_SECRET), and once for the whole server when it does not, since the API then sees every hosted user at the server's one address. Only hashes of keys are kept in memory. Each request carries one JSON-RPC message (batches are refused).Every id an assistant passes is checked to be a UUID before it goes into a request.
Backups the assistant starts go only to your organization's own storage; the API refuses a storage location that belongs to another organization.
Names, notes, branch names and log text in results are your data. They are returned as data, and the server tells the assistant not to follow instructions found in them. Results that carry text others wrote (runtime and task logs, task error messages, deploy history, backup notes and snapshots) have a
noticefield before that text saying so, and those tools are marked open-world. Webhook delivery lists leave out the body your receiving URL answered with, since whoever runs that URL writes it.In hosted mode at most 3 tool calls per key, and 10 per caller address, run at the same time; more get a "too many tool calls" error. Error messages there name "the oec.sh API" rather than the address the server uses, and leave out answers that are not the API's own JSON.
Never paste your API key into the chat. The assistant does not need it: the server reads it from its configuration, and anything typed into the chat stays in the transcript.
MCP client configuration files (
claude_desktop_config.json,~/.claude.json,mcp.jsonand the like) store the key in plain text. Keep them out of version control, backups you share and screen shares.With Claude Code, do not add the server with
--scope project: that writes the key into.mcp.jsonin the project, which is meant to be committed. Use the default (local) or--scope user.Destructive and sensitive tools are off by default. Prefer a read-only, project-scoped key, and give the assistant a full-access key only when it needs to change things.
Revoke a key at once if it leaks: Settings > API Keys.
Running the HTTP server yourself
docker build -t oecsh-mcp ./mcp-server
docker run -p 127.0.0.1:8080:8080 -e OECSH_MCP_ALLOWED_HOSTS=localhost oecsh-mcpThe origin must be reachable only through your proxies (for mcp.oec.sh: Cloudflare, then Traefik). Publish the port on loopback, or only on the proxy's Docker network, and never on a public interface: the caller address the server passes to the API, and its per-address limits, rely on the proxy in front.
In production set OECSH_MCP_ALLOWED_HOSTS to the public host name (for example mcp.oec.sh). On a bind other than loopback the server refuses to start without it, unless OECSH_MCP_ALLOW_ANY_HOST=1 is set.
Variable | Default | Meaning |
|
| Bind address |
|
| Port |
|
| API the keys are sent to. Must use https, except to |
| (off) |
|
|
| Largest request body |
| (none) | Host names to accept, comma separated. On a loopback bind, |
| (off) |
|
| (none) | Browser origins to accept. Requests without an |
| (none) | A secret of at least 32 printable ASCII characters, no spaces (for example |
|
| Request header that holds the caller's address, set by the proxy in front of this server. It is believed only when the hop in front of the local proxy (the last |
| (none) | Extra proxies, comma separated addresses or CIDR ranges, whose client address header is believed and which may connect to the server directly. |
Endpoints: POST /mcp (MCP, stateless, JSON responses) and GET /healthz. Put it behind a proxy that terminates TLS and limits connections per address.
Development
cd mcp-server
npm install
npm run build
npm test
npx @modelcontextprotocol/inspector -e OECSH_API_KEY=oec_live_ro_... node dist/stdio.jsThe package does not depend on the rest of the oec.sh repository.
Licence
MIT, see LICENSE. Copyright (c) 2026 OpenEduCat Inc. To report a security problem, see SECURITY.md.
Odoo is a trademark of Odoo S.A. oec.sh is not affiliated with Odoo S.A.
This server cannot be deployed
Maintenance
Related MCP Connectors
Manage CloudPepper servers, Odoo instances, backups, and deployments over MCP.
Deploy and manage Jade Hosting projects from AI clients. Jade account and OAuth required.
The OpenRouter for tools. One MCP connection gives any AI agent 254 hosted tools, pay per call.
Your org's AI agents, tasks, runs, search, and brain files as MCP tools and resources.
Related MCP Servers
- FlicenseNot gradedqualityBmaintenanceEnables ChatGPT to interact with Odoo by providing tools for repository management, git operations, Odoo.sh management, Odoo RPC, browser screenshots, and approval workflows.-
- FlicenseNot gradedqualityCmaintenanceEnables authenticated team members to manage Odoo projects, tasks, timesheets, and milestones through Claude, with per-user token-based authentication.-
- AlicenseNot gradedqualityCmaintenanceEnables Claude to interact with Odoo through 12 MCP tools covering discovery, CRUD operations, and bulk import/export via XML-RPC.MIT
- AlicenseAqualityBmaintenanceEnables Claude Desktop, Cowork, or Claude Code to interact with Odoo ERP via XML-RPC without installing custom modules, offering tools for CRM and sales, projects and tasks, inventory and purchases, plus connectivity checks.131MIT