Skip to main content
Glama
Odoo MCP Server

Odoo MCP Server

by snoo-snoo
README.md
# odoo_mcp_server_mpi

Odoo MCP Server (`mpi_mcp_server`) maintained and security-hardened by **MPI GmbH, Michael Plöckinger** ([https://mpi-erp.at](https://mpi-erp.at)).

> **Origin:** Based on the Odoo Apps module [MCP Server (`https://apps.odoo.com/apps/modules/20.0/mcp_server`)](https://apps.odoo.com/apps/modules/20.0/mcp_server).

## Branches by Odoo Version

| Branch | Odoo Version | Module Version |
| ------ | ------------ | -------------- |
| `16.0` | Odoo 16.0    | `16.0.2.3.2`   |
| `17.0` | Odoo 17.0    | `17.0.2.3.2`   |
| `18.0` | Odoo 18.0    | `18.0.2.3.2`   |
| `19.0` | Odoo 19.0    | `19.0.2.3.2`   |
| `20.0` | Odoo 20.0    | `20.0.2.3.2`   |

## Odoo.sh Deployment

Odoo.sh installs Python dependencies from `requirements.txt` at the **repository root**:

```text
authlib>=1.6.12,<1.7.0
defusedxml
packaging
```

## Security Hardening Defaults

- **Rate limiting** (`mpi_mcp_server.enable_rate_limiting`) is **enabled by default** (300 req/min per user per worker).
- **OAuth 2.1** (`mpi_mcp_server.enable_oauth`) is **disabled by default** (API keys only until an administrator enables OAuth; when OAuth is enabled, Dynamic Client Registration `/mcp/oauth/register` can also be toggled via `mpi_mcp_server.allow_oauth_dcr` and browser origins should be restricted via `mpi_mcp_server.allowed_origins`).
- **Chatter `post_message`** restricts posts to internal notes (`subtype="note"`, no `partner_ids`) by default (`mpi_mcp_server.allow_external_chatter_messages = False`) to prevent accidental customer emails.
- **Attachment download links** keep a 1-hour default TTL (`mpi_mcp_server.link_ttl_hours = 1`) and can be disabled altogether via `mpi_mcp_server.allow_attachment_download_links`.

## License

See [LICENSE](LICENSE) (`OPL-1`).