Write the allowed question first
“Read-only access to Odoo” is still too broad. Start with a question such as “Which confirmed orders for my sales team are overdue for delivery?” That reveals the models, companies, fields and record rules the connection needs. Anything unrelated stays outside the pilot.
Create a dedicated Odoo user boundary
Do not connect Claude with an administrator account. Create or select an integration user with the minimum Odoo groups needed for the workflow. Verify that user directly in Odoo: it should see the allowed records and fail to open a record outside its companies, team or role.
The MCP Server executes reads under that Odoo identity, so ACLs and record rules remain authoritative. A model allowlist or field rule can narrow the surface further but should not compensate for an over-privileged user.
Apply a read-only client policy
Configure the MCP client or OAuth policy as read-only so tools without the read-only annotation are refused before dispatch. Keep write-safety policies in place as defence in depth, but do not present an approval prompt as equivalent to a read-only connection.
For API-key access, scope the key to the permitted models and fields. For OAuth, review the client registration, redirect URI, user consent and revocation path. Use a separate client for production rather than reusing a broad development credential.
Mask fields the answer does not need
A record may be allowed while one field remains sensitive. Add full, partial or hash masks for fields such as private contact details, bank data or internal cost where the workflow needs the record but not the raw value. The field masking guide explains how query paths are blocked as well as output values.
Run an allow, deny and revoke test
- Ask a question with a known answer inside the allowed scope.
- Request a record from another company or team and confirm denial or absence.
- Ask for a protected field and inspect the mask or refusal.
- Ask Claude to create or update a record and confirm the read-only policy blocks the tool.
- Revoke the credential and verify the existing connection can no longer read.
- Review the audit evidence and record who owns recurring access review.
Frequently asked questions
Is a read-only API key enough by itself?
Use layered controls. The Odoo user should have only the required read permissions, the MCP client should be marked read-only, models and fields should be scoped, and sensitive output should be masked. Then test denied writes and revoke the credential.
Can Claude still see every record the Odoo user can read?
Odoo ACLs and record rules define the user boundary. The MCP configuration can narrow models and fields further. If the user can read too much, fix the Odoo user or record rules instead of relying only on a prompt.
How do I remove Claude access?
Revoke or rotate the MCP credential or OAuth client in Odoo, then test the old connection. Also review any active client session and the AI provider’s own connector controls.
Continue in this topic
Define a read-only pilot
Share one question Claude should answer, the records involved and who is allowed to see them. We will turn that into a narrow access and validation plan.
Plan the read-only pilot →