npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

mcp_odoo_ai

v1.0.0

Published

MCP server for Odoo via ai_odoo_mcp HTTP admin API (/mcp/admin token + ORM)

Readme

mcp_odoo_ai

MCP (stdio) server that talks to Odoo through the ai_odoo_mcp HTTP admin API: token-authenticated POST /mcp/admin and ORM-style calls (search_read, read, read_group, etc.), same idea as the Python external MCP tests.

Requirements: Node.js 18+, and an Odoo instance with ai_odoo_mcp configured and an MCP admin token.

Install

npm install -g mcp_odoo_ai

Or use npx (no global install):

npx mcp_odoo_ai

The CLI binary is mcp-odoo-ai (hyphenated).

Configuration

Configure one of these:

| Mode | Environment | |------|-------------| | Multi-tenant file | ODOO_AI_COMPANIES_FILE or ODOO_COMPANIES_FILE → path to a JSON array of { "id", "url", "token" } | | Inline JSON | ODOO_AI_COMPANIES → same JSON array as a string | | Single instance | ODOO_AI_BASE_URL + ODOO_AI_TOKEN |

Optional:

  • ODOO_AI_INSECURE_SSL=1 — allow staging/self-signed TLS (hostname mismatch).
  • ODOO_AI_TIMEOUT_MS — HTTP timeout (default is handled by the client).
  • ODOO_AI_HTTP_USER_AGENT — custom User-Agent.

Copy odoo_ai_companies.example.json and .env.example as templates; never commit real tokens.

Cursor / Claude Desktop (stdio)

Point the MCP runner at the package entry and pass env (or a .env file next to the working directory, via dotenv):

{
  "mcpServers": {
    "odoo-ai": {
      "command": "npx",
      "args": ["mcp_odoo_ai"],
      "env": {
        "ODOO_AI_COMPANIES_FILE": "/absolute/path/to/odoo_ai_companies.json"
      }
    }
  }
}

If you run from a project folder that contains .env, dotenv loads it automatically.

MCP tools

| Tool | Purpose | |------|---------| | odoo_ai_list_companies | List configured tenants (id + url only; optional refresh to re-read file). | | odoo_ai_ping | Connectivity check: search_read one res.partner. | | odoo_ai_call | Low-level: arbitrary model, method, args, kwargs. | | odoo_ai_search_read | search_read with domain, fields, limit, offset, order. | | odoo_ai_search | search → record ids. | | odoo_ai_read | read ids + optional field list. | | odoo_ai_read_group | read_group aggregations. |

With multiple tenants, tools accept optional company (the tenant id from your JSON). With a single tenant, omit it.

Development

cd mcp_odoo_ai
npm install
npm start

Syntax check (also runs automatically before publish):

npm run prepublishOnly

Publish to npm

  1. Create an npm account and log in:

    npm login
  2. Bump version in package.json (semver), then publish:

    cd mcp_odoo_ai
    npm publish

    For a scoped package name (e.g. @your-org/mcp-odoo-ai), the first public publish needs:

    npm publish --access public
  3. With npm 2FA, you may need a one-time password:

    npm publish --otp=123456

Dry-run tarball contents (no upload):

npm pack --dry-run

This package is JavaScript on npm, not Python on PyPI. For PyPI you would use twine upload after building a wheel/sdist; that does not apply here unless you ship a separate Python project.