From 69dc53b02e7de526fafbcb2030504e0e4e5c736b Mon Sep 17 00:00:00 2001 From: Oliver Date: Tue, 16 Jun 2026 14:39:16 -0300 Subject: [PATCH] blog: speed run - connect Hermes to Odoo via MCP --- blog/index.json | 9 + blog/posts/speed-run-odoo-mcp.html | 347 +++++++++++++++++++++++++++++ 2 files changed, 356 insertions(+) create mode 100644 blog/posts/speed-run-odoo-mcp.html diff --git a/blog/index.json b/blog/index.json index 791ca04..1a7cf31 100644 --- a/blog/index.json +++ b/blog/index.json @@ -1,5 +1,14 @@ { "posts": [ + { + "id": "speed-run-odoo-mcp", + "date": "2026-06-16", + "area": "speed-run", + "agent": "hermes", + "headline": "Speed Run: Connect Hermes Agent to Odoo via MCP", + "teaser": "From zero to an MCP-connected Odoo agent in 5 steps. Clone the server, configure env vars, add to Hermes, and query your ERP through the Model Context Protocol.", + "link": "blog/posts/speed-run-odoo-mcp.html" + }, { "id": "hermes-agent-setup-guide", "date": "2026-06-13", diff --git a/blog/posts/speed-run-odoo-mcp.html b/blog/posts/speed-run-odoo-mcp.html new file mode 100644 index 0000000..d4e0b81 --- /dev/null +++ b/blog/posts/speed-run-odoo-mcp.html @@ -0,0 +1,347 @@ + + + + + + + + Speed Run: Connect Hermes Agent to Odoo via MCP — derez.ai Blog + + + + + + + + + + + + + +
+ ← Back to Blog +

Speed Run: Connect Hermes Agent to Odoo via MCP

+
+ June 16, 2026 + speed-run + hermes + mcp +
+ +

+ Earlier this week we showed you a speed run connecting Hermes Agent to Odoo via direct XML-RPC — + a dedicated Odoo user, direct API calls, no middle layer. That's the approach we recommend for production. +

+

+ But there's another way: the Model Context Protocol (MCP). Instead of the agent talking directly + to Odoo's API, an MCP server sits in between as a translation layer. The agent talks MCP, the MCP server talks + XML-RPC to Odoo. It's an open standard from Anthropic, adopted by Claude Desktop, VS Code, Cursor, and now + Hermes Agent. +

+

+ This speed run walks through the MCP approach in 5 steps. Clone, configure, connect, done. +

+ +
+

Pro Tip: We covered the direct API vs MCP trade-offs in detail here. + TL;DR: Direct access wins on security, latency, and flexibility for single-ERP setups. MCP shines when your agent + needs to talk to many different tools through one protocol. Pick the right tool for your use case.

+
+ +

How It Works

+

+ The architecture is simple: +

+
Hermes Agent → MCP Protocol → mcp-server-odoo → Odoo XML-RPC
+

+ The MCP server (mcp-server-odoo by ivnvxd, 300+ GitHub stars) + exposes a set of tools — search_records, create_record, read_record, + count_records, inspect_model — that your agent can call. It runs locally on your + Hermes instance and communicates over HTTP (streamable-http transport). +

+ +

Prerequisites

+

You'll need an Odoo instance with XML-RPC enabled and an API key. Grab a free trial from + ODOO4projects.com if you don't have one.

+ +
+

Integration — ODOO Community

+
    +
  • URLhttps://006-003-1d9183bb-8430-41a8-85a3-842b2b4d279d.odoo4projects.com/
  • +
  • API Key602e6ea0a0adda65b344a282495da3b05525f63f
  • +
  • Database006-003-1d9183bb-8430-41a8-85a3-842b2b4d279d
  • +
  • Hermes Agent — Any Hermes instance (derez.ai or self-hosted) running on Linux
  • +
+
+ +

Step 1 — Clone the MCP Server

+

+ The MCP server runs on your local machine — the same server where Hermes Agent is installed. + It does not run on the Odoo server itself. +

+
git clone https://github.com/ivnvxd/mcp-server-odoo.git
+cd mcp-server-odoo
+

+ The repo has 315 stars, 144 forks, and 198 commits as of this writing. It's actively maintained and supports + Odoo 16.0+ with both standard (MCP module) and YOLO (direct XML-RPC) modes. +

+ +

Step 2 — Install Dependencies

+

+ The recommended way to run it is via uvx (from the uv Python package manager). + If you don't have uv installed: +

+
curl -LsSf https://astral.sh/uv/install.sh | sh
+

+ That's it — uvx mcp-server-odoo handles the rest automatically. +

+ +

Step 3 — Create the Startup Script

+

+ Create a bash script that sets the environment variables and launches the MCP server in + YOLO read-only mode (no MCP module needed on the Odoo side): +

+
#!/usr/bin/env bash
+
+# Odoo MCP configuration
+export ODOO_URL="https://006-003-1d9183bb-8430-41a8-85a3-842b2b4d279d.odoo4projects.com/"
+export ODOO_DB="006-003-1d9183bb-8430-41a8-85a3-842b2b4d279d"
+export ODOO_USER="changeme@odoo4projects.com"
+export ODOO_API_KEY="602e6ea0a0adda65b344a282495da3b05525f63f"
+export ODOO_READONLY=1
+export ODOO_MCP_TRANSPORT=streamable-http
+export ODOO_MCP_PORT=8000
+export ODOO_YOLO=read
+
+uvx mcp-server-odoo
+

+ Save this as run-odoo-mcp.sh, make it executable (chmod +x run-odoo-mcp.sh), and + run it. The server starts on http://localhost:8000/mcp. +

+ +
+

Pro Tip: YOLO mode (ODOO_YOLO=read) bypasses the need for the Odoo MCP module. + This is great for testing and speed runs. For production, install the + Odoo MCP module + on your Odoo instance and set ODOO_YOLO=off for full security controls.

+
+ +

Step 4 — Register the MCP Server with Hermes

+

+ With the MCP server running, tell Hermes Agent about it: +

+
hermes mcp add odoo --url http://localhost:8000/mcp
+

+ This registers the MCP endpoint with Hermes. From now on, any Hermes session can discover the Odoo tools + automatically. The hermes mcp add command takes a name (we used odoo) and the + server's URL. +

+

+ To verify it worked: +

+
hermes mcp list
+

+ You should see odoo listed with status connected. +

+ +

Step 5 — Start Hermes and Use the Tools

+

+ Start a Hermes session and ask your agent to work with Odoo: +

+
hermes run
+

+ Then in the chat, try something like: +

+
Show me my 5 most recent leads from Odoo CRM.
+

+ The agent discovers the available MCP tools, calls search_records on the + crm.lead model, and returns the results. Same goes for partners, products, invoices, + sales orders — any model your Odoo user has access to. +

+ +

Comparison at a Glance

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
AspectDirect API (Speed Run)MCP (This Post)
Setup time~3 min (paste credentials)~5 min (clone + run server)
ComponentsNone — agent talks directly to OdooMCP server process + Hermes MCP client
Latency1 hop (agent → Odoo)2 hops (agent → MCP → Odoo)
Tool surfaceFull Odoo model access (any method)Predefined MCP tools (search, read, create, etc.)
Multi-tool agentEach tool needs its own integrationOne protocol for all tools (GitHub, Slack, Jira, etc.)
+
+ +

Wrap Up

+

+ In 5 steps and about 5 minutes, you connected Hermes Agent to Odoo through the Model Context Protocol. + Clone the repo, set the env vars, start the server, register with Hermes, and your agent can query + CRM leads, partners, products, invoices — anything your Odoo user has access to. +

+

+ Which approach should you use? +

+ +

+ Both work. Both connect your agent to live Odoo data. Both take under 10 minutes. The right choice + depends on your architecture. +

+ +
+

Pro Tip: You can run both. Use MCP for the tools that benefit from a unified protocol + (docs, chat, code repos) and direct API for Odoo. Hermes Agent supports mixed setups — MCP tools and + direct integrations coexist in the same session. Pick the best connection for each backend.

+
+ +
+

Try It Yourself — $9.50 Off

+

Deploy a Hermes Agent in 10 minutes with either MCP or direct Odoo integration. Use coupon code + BLOG950 for $9.50 off your first month.

+ Get Your Agent → +
+ +

+ derez.ai — Deploy your AI agent in 10 Minutes. · + Direct Odoo API vs MCP · + Direct Odoo Speed Run +

+
+ + \ No newline at end of file