How to connect Claude, Cursor, ChatGPT or any MCP client to an Odoo instance hosted on OConsole. The MCP server is open source; see also pricing and the blog.
Every connector points at https://mcp.odooconsole.com/mcp. What a token carries decides what it reaches: a token for all instances reaches every instance's ERP on your account — using its remembered active selection or a per-call override — plus the provisioning tools; a token for one instance reaches only that instance's ERP; a token for the account reaches the provisioning tools alone. Adding an instance issues no new hostname and needs no change in your client — and an all-instances connector reaches it the moment it exists, with nothing to re-authorise.
Point any MCP client at https://mcp.odooconsole.com/mcp. It will get a 401 carrying a WWW-Authenticate header that names the metadata document below, discover the authorization server from there, register itself, and send you to a consent screen. Nothing has to be configured by hand.
GET /.well-known/oauth-protected-resource names https://auth.odooconsole.com as the authorization server.POST /oauth2/register there. No pre-shared client id.Authorization: Bearer <token> on every request.The choice is part of the grant, not a setting in the client. A single-instance connector authorised for acme cannot see beta, and re-authorising is the only way to point it elsewhere. An all-instances connector selects an active instance with use_instance (see the instance argument below) and reaches every instance you own, including ones created after it was authorised.
| Grant | Scopes | Reaches |
|---|---|---|
| Connect my account | odoo:*, instances:* |
Every instance's ERP on the account — using the active instance or an explicit instance override — and the provisioning tools. The default consent choice. |
| One instance | odoo:read, odoo:write |
That instance's ERP data — records, models, views. Takes no instance argument; the grant fixes it. |
| The account | instances:read, instances:write |
Create, restart, inspect and delete instances. No route to any instance's data. |
The scope families stay separable: a single-instance connector holds only odoo:* and can never provision, and an account-only connector holds only instances:* and can never read a record — so text injected into an Odoo record cannot reach a provisioning tool. The all-instances grant deliberately holds both, for one agent that manages the account and works inside its instances; grant the narrower kinds when a connector should see less.
tools/list is authoritative — what follows is what a token of each kind sees today.
instances:*| Tool | Writes | What it does |
|---|---|---|
setup_options |
– | Available apps, app presets and sample packs, with requirements |
get_context |
– | Account, connection, active instance and context version; opens the picker in MCP Apps hosts |
use_instance |
preference only | Remembers an active instance for this connection |
clear_instance |
preference only | Clears the selection without deleting an instance |
list_instances |
– | Every instance on the account, with state and an active marker |
instance_status |
– | State plus live container health |
instance_logs |
– | Recent log lines; source is odoo or sidecar |
create_instance |
yes | Provisions an instance (Odoo 19) and returns its admin password once. Select apps individually or use app_preset (manufacturing or services). Choose sample_data separately: none, standard, manufacturing, or services. Defaults to no apps and no samples. An explicit apps list overrides the preset. Tailored packs require compatible apps; use setup_options for the catalog. Legacy demo_data: true selects standard samples, which also load for apps installed later. |
restart_instance |
yes | Restarts the containers; the database is untouched |
delete_instance |
yes | Permanent. confirm_name must repeat the instance name |
odoo:*odoo_search_read, odoo_search_count, odoo_export, odoo_list_models, odoo_get_fields, odoo_model_info, odoo_get_view, odoo_connection_info, odoo_doctor are available to any token with odoo:read.
odoo_create, odoo_update, odoo_delete, odoo_execute, odoo_set_default, odoo_modify_action additionally require odoo:write. A read-only grant refuses them before the request reaches Odoo.
Active instance and overrides. Connect your account once to https://mcp.odooconsole.com/mcp, then call get_context() or use_instance(name="personal"). Odoo tools use that connection’s active instance when instance is omitted. An explicit instance="sandbox" applies only to that call. instance_status, instance_logs, and restart_instance also accept an omitted name. Creating an instance never changes the selection. Deleting an instance still requires its explicit name and confirmation.
Safe writes. A write that uses the active instance must include the context_version returned by get_context, use_instance, or a default-target read. If another conversation switches the same connection, an older version is refused before dispatch. Re-check both the intended instance and the record IDs before retrying. Explicit-instance calls keep their existing behavior. Results include the effective target in MCP metadata; default-target results also include a compact Context: instance@context_version footer without changing the original result payload. Picker inventory is in app metadata; use list_instances for a text listing.
Per-connection persistence. Selection is stored against the authenticated OAuth grant, not the account globally or a transport session. It survives token refresh, reconnects and server restarts. New authorizations have distinct connection identities, including when a client reuses an OAuth client ID. Existing account-wide tokens use their original grant without reauthorization; old authorizations that share that grant necessarily share its selection until connected again independently. Missing, deleted, transferred or recreated instances never trigger a fallback. A stopped instance remains selected and reports its unavailable state.
Permissions and clients. Switching does not broaden access. Single-instance connections stay fixed; management-only grants do not gain ERP access. Reauthorize once with Connect my account to broaden a restricted connection. The same selection tools work in text clients; MCP Apps hosts can show a compact picker inside the conversation. Switching in the picker also updates the assistant’s context. Each separately authorized client keeps its own selection.
Account connections can use these tools after addon source has been delivered to the chosen tenant:
| Tool | Operation |
|---|---|
list_modules(instance="personal", search="oconsole_") |
Read the named tenant's Apps catalog and installation state. |
install_modules(instance="personal", modules=["oconsole_app_home"], confirm_instance="personal") |
Refresh the Apps list, install only the named available modules and their Odoo dependencies, then verify installed state. Already installed modules are retained. |
upgrade_modules(instance="personal", modules=["oconsole_app_home"], confirm_instance="personal") |
Upgrade only the named installed modules after a backup and staging test, then verify installed state. |
Both mutations require odoo:write, an owned running instance, and an explicit instance repeated exactly in confirm_instance. They never use the active/default instance or change its selection. Request each tenant installation or upgrade deliberately. Publishing addon code or updating OConsole does not perform these operations.
Source must already be on the tenant's addons path. These tools do not upload Python code or download repositories. Missing source and pending module states are refused. A timeout leaves the outcome unknown: inspect module state and logs before retrying.
Fixed-instance connections retain the generic odoo_execute route: invoke ir.module.module with button_immediate_install (or button_immediate_uninstall) and a verified module record ID. This also requires odoo:write.
The connector authenticates to Odoo as a dedicated account with the rights to manage that instance's configuration, so Odoo's own access rules still apply on top of the scope — but a token's scope, not the account, is the outer gate: a read-only grant never reaches a write tool.
The endpoint is shared; the instances are not. Each instance runs its MCP server inside its own network namespace with no route to any other instance, and that server independently re-checks that the token names the instance it serves before answering. A routing mistake fails closed at the destination rather than handing one instance's data to another. An all-instances token carries no single-instance claim; the shared router resolves the active instance or the instance override in each call, refuses any your account does not own, and forwards to that instance's own server — so the same per-instance scope check, audit trail and network isolation apply exactly as they do to a single-instance connector.