QA + Process — foundation

Odoo MCP Guide.
Claude talks to Odoo.

The Odoo MCP server is a bridge that lets Claude control your Odoo 19 instance using plain language. Set it up once and every other part of the system works.

Read time20 min
LevelBeginner
Quiz3 questions
PrereqPython 3.11+

🗣️
Control Odoo with plain English
Create tickets, move stages, and update fields by describing what you want — no clicking required.
⚙️
Set up the MCP server once
Five steps to connect Claude to your Odoo 19 instance. Done once per machine, works everywhere.
📋
Know all 20 tools
Six read tools, thirteen write tools, one utility — know exactly which tool Claude calls and why.
⚡
Keep responses fast
Eight built-in token strategies that cut bulk-read costs by up to 75%.
20tools
Ready for Claude to call
5steps
One-time setup process
38+
Tests, zero live Odoo needed
8×
Token optimization strategies

01 — what it is

Claude + Odoo: plain language to ticket

No clicking. No navigating. You describe what you want and it happens.

The Odoo MCP server connects Claude to your Odoo 19 instance via Odoo's XML-RPC API. The server is built with FastMCP (Python) and exposes 20 tools that Claude calls automatically when you type natural language instructions. You never invoke the tools directly — Claude routes to the right one based on what you say.

Example: Type "Create a ticket called 'Fix login bug' in the Backend project, set priority to high" — Claude calls create_ticket() automatically and the ticket appears in Odoo.

LayerTechnologyRole
TransportOdoo XML-RPC APIConnects to Odoo over HTTP
ServerFastMCP (Python)Exposes tools to Claude via MCP Protocol
AIClaude Code / Claude DesktopReads your request, calls the right tool
Data storeOdoo 19 EnterpriseWhere tickets actually live

This is the foundation layer. The AI Ticket Pipeline, Context Manager, and every other QA tool in this section routes through the MCP server. Without it connected, nothing else works.

02 — one-time setup

Get connected in five steps

Five steps. Done once per machine. Verified with a test suite.

Step 1 — Prerequisites: Python 3.11 or higher, access to fiftyfive-technologies-pvt-ltd.odoo.com, and your Odoo API Key (Settings > Technical > API Keys in Odoo).

bash
# Step 2 — Install dependencies (run inside odoo-mcp/ folder)
cd odoo-mcp
python -m venv venv
venv\Scripts\activate    # Windows
pip install -r requirements.txt

Step 3 — Configure credentials: Copy the example env file and fill in your details.

bash
# Copy the template
copy .env.example .env
env
ODOO_URL=https://fiftyfive-technologies-pvt-ltd.odoo.com
ODOO_DB=fiftyfive-technologies-pvt-ltd
ODOO_USERNAME=your@email.com
ODOO_API_KEY=your_api_key_here

Never commit .env to git. Your API key lives in .env. It is already in .gitignore. If you accidentally commit it, regenerate your key immediately in Odoo Settings > Technical > API Keys.

Step 4 — Connect to Claude Desktop (new machine only — already configured in VSCode). Add this to %APPDATA%\Claude\claude_desktop_config.json:

json
{
  "mcpServers": {
    "odoo": {
      "command": "C:/path/to/odoo-mcp/venv/Scripts/python.exe",
      "args": ["C:/path/to/odoo-mcp/server.py"]
    }
  }
}

Step 5 — Verify. Run the test suite. All 38+ tests use mocked data — no live Odoo needed.

bash
pytest tests/ -v

After changing claude_desktop_config.json, fully quit and relaunch Claude Desktop — a restart is required for new tools to appear.

03 — all 20 tools

The complete tool reference

Six read tools, thirteen write tools, one utility. You speak plain English — Claude picks the tool.

Read tools — fetch data from Odoo

ToolWhat it doesKey detail
get_ticket(id)Fetch one ticket by IDdetail=False: 8 fields; detail=True: adds description + dates. Cached 60s.
list_tickets(...)List tickets with optional filtersAll filters optional. Max 50 per call. Use offset for pagination. Returns has_more flag.
get_ticket_summary(ids)Bulk one-liner overviewUp to 100 IDs. Returns {id, title, assignee, stage} only. Most token-efficient tool.
search_tickets(query)Full-text search: title + descriptionSearches both fields simultaneously. Faster than paging list_tickets manually.
list_attachments(ticket_id)List files attached to a ticketReturns id, filename, mimetype, size, created_at per attachment.
get_attachment(attachment_id)Download attachment contentAuto-decodes base64 to readable text. Returns full content field.

Write tools — create / update data in Odoo

ToolWhat it doesKey detail
create_project(name)Create a new projectAuto-creates 4 default stages (Backlog, In Progress, In Review, Done) if none specified.
create_stage(name, project_id)Add a Kanban stage to a projectsequence=10 default. Returns {id, name, sequence}.
create_tag(name)Create a task tag (label)Returns {id, name}. Use list_metadata to see existing tags first.
create_ticket(...)Create a single ticketpriority: "0"=normal, "1"=high. Deadline: YYYY-MM-DD. Auto-converts plain text to HTML description.
bulk_create_stages([...])Create multiple stages at onceMore efficient than one-by-one. Stops on first failure.
bulk_create_tickets([...])Scaffold multiple tickets in one callGreat for sprint planning. Stops on first failure.
update_ticket(id, ...)Update existing ticket fieldsOnly updates fields you pass — unpassed fields are untouched.
transition_stage(id, name)Move ticket to a stage by nameCase-insensitive: "done", "Done", "DONE" all work.
add_subtasks(id, [...])Add child tasks to a ticketReturns {ticket_id, created count, subtask_ids}.
add_comment(id, body)Post a PUBLIC chatter commentNotifies all followers. Use for customer-visible updates.
post_log_note(id, body)Post an INTERNAL log noteNot visible to external users. No notifications sent.
attach_file(id, filename, content)Attach a file to a ticketContent is plain text — auto base64-encoded. mimetype auto-detected.
delete_ticket(id)Permanently delete a ticketNo undo. Prefer transitioning to Cancelled/Archived instead.

Utility tool

ToolWhat it doesKey detail
list_metadata(resource)Get reference IDs and namesresource: "projects", "stages", "users", "tags". Cached 600s. Call this first to get IDs before creating tickets.
04 — token optimization

Eight strategies to keep responses fast

Every word Claude reads costs tokens. The MCP server has eight built-in strategies to minimize cost without losing useful information.

#StrategyHow to apply itSaving
1Bulk summary firstUse get_ticket_summary([ids]) for overviews instead of 20x get_ticket(id)~75% token reduction for bulk reads
2Paginate, don't dumplist_tickets(limit=20, offset=0) then offset=20, 40… Stop when has_more=falseAvoids loading 200 tickets when you need 20
3detail=False defaultOmit detail=True unless you specifically need description or dates — saves 40-60% per ticket8 fields vs full detail
4TTL cacheTickets cached 60s, metadata cached 600s (10 min) — same data is never fetched twice in a sessionEliminates redundant API calls
5Bulk createUse bulk_create_tickets([...]) instead of looping create_ticket() ten timesOne round-trip vs ten
6Parallel RPC (automatic)list_tickets fetches data and total count in parallel internally — no action neededAutomatic 2x speed on listing
7Slim write responsesAfter create_ticket, only 5 fields are returned — fetch detail=True explicitly only when neededKeeps context small after bulk creates
8Metadata-first patternCall list_metadata("projects") then list_metadata("stages", project_id=X) before creating — avoids ID errors and wasted retriesPrevents failed calls

TTL cache reference: ticket/list cache = 60s (auto-cleared after any write), metadata cache = 600s, users cache = 300s (not invalidated — users rarely change).

05 — do's and don'ts

What works and what backfires

Ten habits that save time. Ten habits that waste it.

Use get_ticket_summary for overviews — scan many tickets in summary mode first, then fetch detail only for the ones you care about.

Call list_metadata first — always get project and stage IDs before creating or filtering. IDs are required; names alone won't work in most tools.

Use bulk tools for batch work — bulk_create_tickets and bulk_create_stages are designed for sprint setup. Use them instead of looping.

Use search_tickets for text search — it searches title and description simultaneously. Much faster than browsing pages of list_tickets.

Use post_log_note for internal notes — if your note is for the dev team only, use post_log_note not add_comment. No notifications sent.

Don't use delete_ticket lightly — it permanently deletes with no undo. Prefer transitioning to a Cancelled or Archived stage instead.

Don't fetch full detail for bulk overviews — calling get_ticket(id, detail=True) for 30 tickets is wasteful. Use get_ticket_summary.

Don't exceed 100 IDs in get_ticket_summary — the tool enforces a maximum. Split into batches if you need more.

Don't commit .env to git — your Odoo API key is in .env. If you accidentally commit it, regenerate your API key in Odoo immediately.

Don't use create_ticket for updates — always use update_ticket to modify existing tickets. create_ticket always creates a new one.

ProblemSolution
"ConnectionError" or auth failureCheck .env values. Verify ODOO_API_KEY is an API key (not your password). Regenerate at Settings > Technical > API Keys.
Stage not found in transition_stageCall list_metadata("stages", project_id=X) to see exact stage names. Must match a stage that exists in that project.
Claude Desktop doesn't show Odoo toolsFully quit and relaunch Claude Desktop after changing claude_desktop_config.json. A restart is required.
Deadline rejected with errorUse YYYY-MM-DD format exactly. "2026-06-30" works; "June 30" or "30/06/2026" will return an error.
Tests fail with import errorsActivate the virtual environment first: venv\Scripts\activate (Windows). Then: pip install -r requirements.txt.

References: PulseMCP tool directory — pulsemcp.com | Odoo 19 XML-RPC API docs — odoo.com/documentation/19.0 | FastMCP Python library — github.com/jlowin/fastmcp

Check your understanding
1. Which tool is described as the most token-efficient for reviewing many tickets at once?
Correct.Not quite — the correct answer is highlighted above.
2. What is the correct deadline format that the Odoo MCP server accepts?
Correct.Not quite — the correct answer is highlighted above.
3. What should you do before creating a ticket when you don't know the project_id or stage_id?
Correct.Not quite — the correct answer is highlighted above.