odoo-mcp
Provides tools for interacting with Odoo's JSON-2 API, enabling AI agents to manage Odoo records and perform operations on Odoo instances.
Click on "Install 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., "@odoo-mcplist all open sales orders"
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.
odoo-mcp
Docker-first FastMCP server for Odoo 19 JSON-2 integrations.
odoo-mcp exposes Odoo as an MCP server over both HTTP and stdio. It uses the
Odoo 19 external JSON-2 API only:
POST /json/2/<model>/<method>
Authorization: bearer <ODOO_API_KEY>
X-Odoo-Database: <optional database>Legacy XML-RPC and JSON-RPC are intentionally out of scope.
Status
This is an early implementation with a strong v1 foundation:
FastMCP
3.2.4Docker Compose first
HTTP and stdio transports
lazy Odoo credential loading so MCP discovery works before secrets are present
guarded write operations with
confirm=Truegeneric Odoo tools
comprehensive CRM tool pack
resources and prompts for safe Odoo work
pytest, ruff, mypy, and GitHub Actions CI
Quick Start With Docker
Copy the environment template and edit the Odoo values:
cp .env.example .envRequired for real Odoo calls:
ODOO_URL=https://your-odoo-host.example.com
ODOO_API_KEY=your-odoo-api-key
ODOO_DATABASE=your-database-if-neededStart the HTTP server:
docker compose up --buildThe default MCP endpoint is:
http://localhost:8000/mcpCheck local process readiness:
docker compose exec odoo-mcp uv run --no-sync odoo-mcp healthcheckLocal Development
Install dependencies:
uv syncRun the full gate:
uv run pytest
uv run ruff check .
uv run ruff format --check .
uv run mypy srcRun HTTP locally:
uv run odoo-mcp http --host 0.0.0.0 --port 8000 --path /mcpRun stdio locally:
uv run odoo-mcp stdioInspect sanitized config:
uv run odoo-mcp inspect-configMCP Client Config
Stdio example:
{
"mcpServers": {
"odoo": {
"command": "uv",
"args": ["run", "odoo-mcp", "stdio"],
"env": {
"ODOO_URL": "https://your-odoo-host.example.com",
"ODOO_API_KEY": "your-odoo-api-key",
"ODOO_DATABASE": "your-database-if-needed"
}
}
}
}HTTP clients should connect to /mcp. If the server is exposed beyond a trusted
network, set MCP_AUTH_MODE=static or MCP_AUTH_MODE=jwt.
Configuration
Variable | Purpose |
| Base URL for Odoo 19 JSON-2 calls. |
| Odoo API key sent as |
| Optional Odoo database header. |
| HTTP timeout for Odoo calls. Defaults to |
| Comma-separated allowlist for otherwise blocked generic methods. |
| Comma-separated optional CRM features to expose. |
|
|
| Bearer token for |
| JWKS URL for |
| Public key alternative for JWT verification. |
| Optional expected JWT issuer. |
| Optional expected JWT audience. |
| Optional comma-separated JWT scopes. |
| HTTP bind host. Defaults to |
| HTTP bind port. Defaults to |
| MCP endpoint path. Defaults to |
| HTTP server log level. Defaults to |
Tool Catalog
Generic Odoo tools:
odoo_search_readodoo_readodoo_createodoo_writeodoo_unlinkodoo_actionodoo_call_methododoo_current_userodoo_model_fieldsodoo_list_models
CRM tools:
leads and opportunities:
crm_list_leads,crm_get_lead,crm_create_lead,crm_update_lead,crm_assign_leadpipeline:
crm_list_pipeline_stages,crm_move_lead_to_stage,crm_pipeline_reportwon/lost lifecycle:
crm_mark_won,crm_mark_lost,crm_restore_lead,crm_list_lost_reasonsconversion and merge:
crm_convert_lead_to_opportunity,crm_merge_opportunitiesactivities:
crm_schedule_activity,crm_mark_activity_done,crm_list_activities,crm_list_activity_types,crm_activity_reportteams and scoring:
crm_list_teams,crm_update_lead_scoreoptional features:
crm_enrich_lead,crm_list_scoring_rules,crm_recurring_revenue_report
Optional CRM tools are registered only when their feature key is listed in
ODOO_CRM_OPTIONAL_FEATURES.
Resources And Prompts
Resources:
odoo://server/infoodoo://user/contextodoo://model/{model}/fieldsodoo://crm/pipeline/summary
Prompts:
odoo_safe_operationodoo_crm_pipeline_reviewodoo_record_change_plan
Safety Model
Odoo remains the final authorization layer through its access rights and record rules. The MCP server adds local guardrails:
mutating Odoo client calls require
confirm=Truegeneric dangerous methods such as
call_kwandexecute_kware blocked unless explicitly allowlistedHTTP MCP auth is separate from the server-side Odoo API key
inspect-configredacts secretsOdoo API errors redact configured secret values
Use MCP_AUTH_MODE=static for simple private HTTP deployments:
MCP_AUTH_MODE=static
MCP_STATIC_TOKEN=change-meUse MCP_AUTH_MODE=jwt with JWT_JWKS_URI or JWT_PUBLIC_KEY for production
identity-provider-backed deployments.
Extending
Add module packs under src/odoo_mcp/tools/ and register them from
src/odoo_mcp/server.py. Prefer typed, curated tools for business workflows and
leave odoo_call_method as the explicit escape hatch.
When adding new Odoo workflows:
Write tests first with mocked Odoo JSON-2 behavior.
Prefer single-call Odoo methods like
search_readbecause each JSON-2 call is its own transaction.Require
confirm=Truefor writes, actions, posting, validation, archive, and delete operations.Add focused README entries for new tools and optional feature flags.
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Tools
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/plgonzalezrx8/odoo-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server