mcpField
O
odoo-surface-mcp

odoo-surface-mcp

Local
github.com/solutionsunityBusiness & Marketing2Updated 4w ago

About odoo-surface-mcp

odoo-surface-mcp exposes Odoo operations to AI agents through MCP, bounded by the authenticated user’s interface permissions. Its layered tools support discovery, planning, data access, and guided workflows.

Key features

  1. 01Scopes actions to user permissions
  2. 02Discovers models, fields, and actions
  3. 03Reads, searches, and groups records
  4. 04Creates, updates, and acts on records
  5. 05Manages pages, attachments, and translations
  6. 06Provides skills and workflow guidance

Use cases

  1. 01Find and update Odoo business records
  2. 02Act based on a record’s current state
  3. 03Create or adjust website pages
  4. 04Manage attachments and translations

MCP support

As an MCP server, it exposes Odoo discovery, query, and action tools to compatible clients. Access is limited to what the authenticated user can do in Odoo.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"solutionsunity-odoo-surface": {
"command": "npx",
"args": [
"-y",
"@suco/odoo-surface-mcp"
],
"env": {
"ODOO_URL": "<ODOO_URL>",
"ODOO_DB": "<ODOO_DB>",
"ODOO_USERNAME": "<ODOO_USERNAME>",
"ODOO_PASSWORD": "<ODOO_PASSWORD>"
}
}
}
}
Run commandnpx -y @suco/odoo-surface-mcp
Environment variables to set
ODOO_URLOdoo instance URL (e.g. https://myodoo.com)
ODOO_DBOdoo database name
ODOO_USERNAMEOdoo login username
ODOO_PASSWORDSecretOdoo login password

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
npm@suco/odoo-surface-mcp0.6.1

Tools

36

Saved tool list · updated 2w ago

This tool takes no parameters.

Details

From the project README

README image OdooSurface MCP

npm version Node Odoo License: Apache 2.0 Downloads

User-equivalent Odoo access for AI agents — what the authenticated user can do in their browser, nothing more.

Prerequisites

  • Node.js 18+ (ships with npx — no extra install needed)
  • A running Odoo instance (15.0+, CE or EE) — per-version behaviour of every call: docs/compatibility.md
  • An MCP-compatible client (VS Code, Claude Desktop, Claude Code, Cursor, …)

Configure your MCP client

Add this to your MCP client config (e.g. Claude Desktop claude_desktop_config.json):

{
  "mcpServers": {
    "odoo-surface": {
      "command": "npx",
      "args": ["-y", "@suco/odoo-surface-mcp@latest"],
      "env": {
        "ODOO_URL": "http://localhost:8069",
        "ODOO_DB": "your_database",
        "ODOO_USER": "admin",
        "ODOO_PASSWORD": "admin"
      }
    }
  }
}

Restart your MCP client after saving. npx downloads and runs the package automatically — no further install steps.

Authentication

Option A — .env file (keep credentials out of MCP config)

Instead of putting credentials in your MCP client JSON, create a .env file in the directory where you run the MCP:

ODOO_URL=http://localhost:8069
ODOO_DB=your_database
ODOO_USER=admin
ODOO_PASSWORD=your_password

Remove the env block from the MCP client config — the .env file is loaded automatically.

Option B — API Key (recommended, no password stored)

Since Odoo 14+, users can generate personal API keys that act as a password replacement. Each user generates their own key from their own account — there is no admin-side menu for this.

  1. Log in as the user the MCP will authenticate as
  2. Click the user avatar (top-right) → Preferences
  3. Go to the Account Security tab
  4. Under API Keys → click New API Key
  5. Enter your password when prompted, give the key a name, copy the generated key
  6. Use it as ODOO_PASSWORD — the actual account password is never stored
ODOO_URL=http://localhost:8069
ODOO_DB=your_database
ODOO_USER=admin
ODOO_PASSWORD=your_api_key_here

API keys can be revoked individually from the same screen without changing the account password.

Advanced Configuration

Multiple Odoo instances

Technical users commonly work with more than one Odoo instance (local dev, staging, production). Each instance gets its own named entry in the MCP config — they run as independent processes with fully isolated credentials. The AI client exposes them as separate tool namespaces.

{
  "mcpServers": {
    "odoo-local": {
      "command": "npx",
      "args": ["-y", "@suco/odoo-surface-mcp@latest"],
      "env": {
        "ODOO_URL": "http://localhost:8069",
        "ODOO_DB": "dev",
        "ODOO_USER": "admin",
        "ODOO_PASSWORD": "dev_api_key"
      }
    },
    "odoo-production": {
      "command": "npx",
      "args": ["-y", "@suco/odoo-surface-mcp@latest"],
      "env": {
        "ODOO_URL": "https://mycompany.odoo.com",
        "ODOO_DB": "prod",
        "ODOO_USER": "admin",
        "ODOO_PASSWORD": "prod_api_key"
      }
    }
  }
}

Note: The .env file approach (Option A) does not work for multi-instance setups — both processes share the same working directory and would load the same file. Use the env block per entry instead.

Debug mode

Registers additional tools: ping, echo, inspect_view, inspect_action, inspect_fields, dump_cache, clear_cache, restart_mcp.

"args": ["-y", "@suco/odoo-surface-mcp@latest", "--debug"]

Tools

LayerTools
Guidancelist_skills, get_skills, find_skill, list_workflows, get_workflows
Discoveryget_models, get_model_actions, get_model_interface
Planningget_available_actions
Supportinglist_records, get_record, search_records, read_group, get_fields, get_defaults, get_filters, list_pages, get_page_arch, list_snippets, get_snippet, list_attachments, download_binary, fetch_and_upload, translation_get, translation_update, translation_audit
Intentcreate, update, execute_action, archive, post_message, schedule_activity, create_page, set_page_arch, set_page_visibility, upload_binary

Architecture

Core Contract

The agent may only do what the authenticated user can do in their browser. Scope is bounded by the user's menus, views, and ACL — nothing more. Tool verbs express functional intent (publish, confirm) rather than raw ORM operations. Discovery is lazy: the agent resolves only what the current prompt requires.

Layered Tool Surface
LayerRoleWhen invoked
0 — GuidanceCanonical recipes (skills, workflows) the agent consults before any multi-step operation. Pure documentation, no side effects.Before planning
1 — DiscoveryEstablishes the bounded universe of models and reachable relations for the current user.At intent resolution
2 — Planning BridgeAnswers "what is live on this specific record right now" — record-state-aware actions.Once a record is identified
3 — SupportingRead-only data fetchers used silently to fill gaps in the agent's plan.Throughout planning
4 — IntentMutating actions that fulfill the user's request — bounded by the user's UI permissions.Final execution
Planning Loop
User prompt
  ├── Discovery       — what models/relations does this user have?
  ├── (optional)      — locate the specific record
  ├── Planning Bridge — what is live on that record right now?
  ├── Guidance        — consult skills/workflows for multi-step recipes
  └── Intent          — execute the mutation(s)

Skills and workflows are authored in skills/ and workflows/ as markdown with YAML frontmatter; they are exposed as Layer 0 tools at runtime.

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.