Acumatica MCP Server
Enables querying and acting on any Acumatica ERP tenant's contract-based REST API through 8 generic tools, covering all entities with read-only by default safety.
README
Acumatica MCP Server
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣀⣴⡖⠿⣦⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢠⣞⡻⠉⢀⠀⠈⠳⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠸⡏⠀⡂⣸⣦⠀⠀⠘⢦⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣿⠀⢻⠉⠻⠐⣭⡀⠀⠙⢄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⢀⡀⠀⠀⠀⠀⠀⠀⢡⠤⠜⠂⠀⠀⠈⠘⠀⠀⠀⠱⣄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⣠⠞⠁⠙⢦⣀⠀⠀⠀⠀⢸⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠣⡀⠀⠀⠀⠀⠀⠀⠀⣀⠤⠤⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⢸⡀⠀⠀⠀⠉⠳⣄⠀⠀⣹⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣀⣠⣼⣶⣶⢒⣛⡻⢥⡤⣀⠀⢮⡗⣆⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⢰⣶⣿⣿⣿⣾⣧⣤⣬⣤⣀⣙⣿⣤⣽⡆⠂⠂⡀⠀⠀⠀⠀⣀⠀⠠⠐⠂⠈⡋⣟⣿⣇⣠⡀⡼⣏⣉⡉⠱⣿⣿⣶⣶⠒⠒⠒⠒⠒⠒⠒⠒⠢⠤⢄⡀
⠀⠀⠀⠀⠉⠉⢛⣿⢿⣿⣿⣿⣿⣿⣿⡿⠁⠀⠀⠀⠀⠀⠀⠄⠀⠀⠀⠀⠂⠂⠀⠉⣟⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⣶⣿⣷⣶⣶⣶⣶⣶⣶⣾⣿⠿⠛⠁
⠀⠀⠀⠀⠀⠀⠈⠛⢻⣿⣿⣿⣿⡏⢁⣀⣀⣠⣤⣤⡤⠀⢀⠀⠀⢀⡀⣀⣠⣤⣿⣶⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡿⠿⠿⢿⠟⠛⠋⠉⠉⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⢻⣿⣿⣿⣿⣿⡿⠿⠛⠛⠉⠀⠀⠒⢾⠤⠤⠤⠀⠚⠛⠉⢩⠙⠛⠛⠟⠿⣿⡿⢿⡿⣿⠉⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⣀⣿⣿⠟⢻⠁⠀⠀⢀⣀⣀⣀⣀⠤⠀⠀⠀⠀⠀⢀⣤⡤⠼⣴⣤⣤⣤⣤⣿⡿⠿⠛⠛⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠠⢶⣶⣶⣿⣦⣤⣠⣿⣿⣶⣾⣿⣶⣿⣿⠿⠿⠛⠁⠀⠀⠀⠀⠤⠤⠶⠿⢿⣿⣿⣿⣿⣿⣿⣿⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠉⠛⠿⣿⣿⣿⣿⣿⣿⣿⣿⣤⣄⣀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣠⣾⠿⠿⠿⠿⠙⠋⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⣿⠟⢿⣿⣿⣿⣿⡿⢻⡇⠀⠀⠀⠀⠀⠀⠀⠀⠀⣠⣾⠟⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⣸⡇⠀⣿⣿⣿⣿⠟⠀⢸⠋⠀⠀⠀⠀⠠⣤⣀⣄⣴⡿⠋⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⢀⡟⠀⢠⣿⣿⡟⠁⠀⠀⡸⠁⠀⠠⠀⠀⠁⠀⢉⣿⠟⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⣾⠀⠀⣼⡟⠁⠀⠀⠀⢠⡇⢀⢄⡞⠀⠀⡳⣴⡿⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠈⠙⠚⠋⠀⠀⠀⠀⢀⣾⠇⠡⠈⠀⠀⢀⣾⠋⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⠿⡆⠀⠀⢀⣴⠏⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠙⣿⣷⣶⣾⡇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
A Model Context Protocol (MCP) server for Acumatica ERP. It lets an MCP client (Claude Desktop, or any MCP-aware agent) query and act on any Acumatica tenant's contract-based REST API through just 8 generic tools.
Acumatica's contract API is uniform: every entity (SalesOrder, Bill, Customer,
StockItem, and so on) supports the same GET / PUT / DELETE verbs with OData
query parameters, plus POST /{Entity}/{Action} for entity-specific actions.
Instead of hand-coding hundreds of endpoints, this server exposes 8 tools that
cover the entire surface (all ~119 entities in a standard tenant), plus a small
catalog that teaches the model each entity's fields, key format, and actions.
Status: Beta. Battle-tested.
Table of Contents
- Features
- Architecture
- The 8 tools
- How a query flows
- Skills (repeatable workflows)
- Requirements
- Installation
- Configuration
- Register with Claude Desktop
- Authentication
- Write safety (read-only by default)
- Regenerating the entity catalog
- Security notes
- Prior art and related projects
- License
- Disclaimer
Features
- Small and legible. One server file, ~700 lines, three dependencies. You can read the whole thing before trusting it with your ERP.
- Complete coverage. 8 generic tools reach all ~119 entities of any tenant's contract API, no per-entity code.
- Read-only by default. Writes and deletes stay disabled until you explicitly opt in, so it is safe to point at production while you explore.
- Portable. Works against any Acumatica instance with just a service account.
- Clickable results. Records come back with a
browser_urlthat links straight to the record in the Acumatica web UI. - Self-correcting queries. Errors return actionable hints (wrong field name, missing mandatory filter, permission gap) instead of raw HTTP 500s.
- Repeatable workflows. Ships example skills - packaged, tested procedures (AP/AR health, three-way match, and more) that turn the raw tools into reliable, one-command operations. See Skills.
Architecture
flowchart LR
U[You] -->|natural language| C[Claude / MCP client]
C -->|MCP tool calls| S[acumatica-mcp-server]
S -->|"cookie-auth REST + OData"| A[(Acumatica ERP)]
A -->|JSON records| S
S -->|"results + browser_url"| C
C -->|answer| U
The server is a thin, stateless translator: MCP tool calls in, Acumatica REST
calls out. All entity knowledge (fields, keys, actions) lives in a data catalog
(entity_catalog.json), so the tools stay generic.
The 8 tools
| Tool | HTTP | What it does |
|---|---|---|
list_entities |
(local) | List the entities available in the tenant, filterable by substring. |
describe_entity |
(local) | Call this first. Returns an entity's fields, key format, actions, and expandable sub-collections. |
list_records |
GET /{Entity} |
Query records with OData ($filter, $select, $top, $expand, and so on). |
get_record |
GET /{Entity}/{key} |
Fetch a single record by its key. |
upsert_record |
PUT /{Entity} |
Create or update a record. Requires ACUMATICA_ALLOW_WRITES=1. |
delete_record |
DELETE /{Entity}/{key} |
Delete a record. Requires ACUMATICA_ALLOW_DELETES=1. |
invoke_action |
POST /{Entity}/{Action} |
Run an action (Release, Cancel, Confirm). Requires ACUMATICA_ALLOW_WRITES=1. |
get_schema |
GET /{Entity}/$adHocSchema |
Discover user-defined (DAC extension) fields and view names. |
See docs/USAGE.md for the field-name, key-format, $filter,
and $custom rules that make queries reliable.
How a query flows
The golden rule: call describe_entity first. Most failures come from
guessing field names or key formats.
flowchart TD
Q[Need data or an action] --> LE[list_entities: find the entity]
LE --> DE[describe_entity: fields, key format, actions]
DE --> RW{Read or write?}
RW -->|read| RD[list_records / get_record]
RW -->|write| G{Gate enabled?}
G -->|"ALLOW_WRITES / ALLOW_DELETES set"| WR[upsert_record / delete_record / invoke_action]
G -->|not set| BL[403 blocked: read-only by default]
Skills (repeatable workflows)
The 8 tools give a model the raw verbs. Skills turn those verbs into
repeatable, tested workflows: the exact queries, fallbacks, and output format for a
real task, written down once so the model runs it the same correct way every time.
The skills/ folder ships a starter set you can use as-is or adapt:
| Skill | What it does |
|---|---|
recent-records |
Reliably find the latest / most-recent record of any entity (works around tenants that ignore $orderby). |
ap-health |
Accounts-payable health check: aging buckets, overdue bills, stale POs, uninvoiced receipts. |
ar-health |
Accounts-receivable health check: open AR, aging, unapplied payments, customer concentration. |
three-way-match |
Reconcile Bill vs Purchase Receipt vs PO line by line and flag price / quantity variances. |
doc-doctor |
Diagnose why a document is stuck or wrong (receive failures, wrong totals, holds) and propose the fix. |
Each skill is a single SKILL.md with frontmatter, in the format used by Claude
Code / Claude Desktop skills. Drop the folder wherever your client discovers skills
(for example your project's .claude/skills/) and invoke it by name. All five are
read-only reporting workflows; none of them writes to your tenant.
Requirements
- An Acumatica instance with the contract-based REST API enabled (the default
Defaultendpoint, for example version24.200.001). - A dedicated service / integration account with the appropriate role(s).
- Python 3.10+.
Installation
Clone the repository and install its dependencies:
git clone https://github.com/yourlastnamesoundslikeatypeofpasta/acumatica-mcp-server.git
cd acumatica-mcp-server
python -m venv .venv
# Windows: .venv\Scripts\activate
# macOS/Linux: source .venv/bin/activate
pip install -r requirements.txt
Configuration
The server reads its connection settings from environment variables. There are two ways to supply them, and you only need one (you never enter credentials twice):
- Option A: the MCP client
envblock (recommended). Put the values in your MCP client config (see Register with Claude Desktop). Nothing is written to disk and no.envfile is needed. - Option B: a
.envfile. Copy.env.exampleto.envnext toserver.pyand fill it in. Your MCP client config then only needs thecommand/args, not the credentials.
ACUMATICA_BASE_URL=https://your-instance.acumatica.com
ACUMATICA_ENDPOINT_PATH=/entity/Default/24.200.001
ACUMATICA_USERNAME=service_account
ACUMATICA_PASSWORD=your-password
ACUMATICA_COMPANY=YourCompany
If you set both, the env block (process environment) wins and the .env file only
fills in anything it did not set.
Register with Claude Desktop
Add this to your claude_desktop_config.json (full example in
docs/claude-desktop-config.example.json).
This is Option A: credentials live in the env block. If you use a .env file
instead (Option B), drop the ACUMATICA_* credential keys from env:
{
"mcpServers": {
"acumatica": {
"command": "python",
"args": ["C:/path/to/acumatica-mcp-server/src/acumatica_mcp/server.py"],
"env": {
"ACUMATICA_BASE_URL": "https://your-instance.acumatica.com",
"ACUMATICA_ENDPOINT_PATH": "/entity/Default/24.200.001",
"ACUMATICA_USERNAME": "service_account",
"ACUMATICA_PASSWORD": "your-password",
"ACUMATICA_COMPANY": "YourCompany"
}
}
}
}
Restart Claude Desktop, then try: "List the open sales orders modified in the last 14 days" or "Describe the Bill entity."
Authentication
Cookie-based. The server logs in on the first request, holds the session cookie, transparently re-logs in on a 401, and logs out on exit.
sequenceDiagram
participant S as acumatica-mcp-server
participant A as Acumatica
S->>A: POST /entity/auth/login (first request)
A-->>S: session cookie
S->>A: GET / PUT / POST /{Entity}
A-->>S: 200 + data
Note over S,A: on 401, re-login once and retry
S->>A: POST /entity/auth/logout (on exit)
Write safety (read-only by default)
The three mutating tools are disabled by default. Enable them deliberately via environment variables:
| Variable | Enables |
|---|---|
ACUMATICA_ALLOW_WRITES=1 |
upsert_record and invoke_action |
ACUMATICA_ALLOW_DELETES=1 |
delete_record |
When a mutating tool is called while disabled, it returns a 403-style envelope
with a hint telling you which variable to set. No request is sent to Acumatica.
Regenerating the entity catalog
The bundled entity_catalog.json covers standard Acumatica entities. If your
tenant has customizations (custom entities, extension fields), regenerate it from
your tenant's OpenAPI spec:
- In Acumatica, open your endpoint under Web Service Endpoints and export its
OpenAPI (Swagger) JSON, or
GET {BASE_URL}{ENDPOINT_PATH}/swagger.json. - Rebuild:
python src/acumatica_mcp/rebuild_catalog.py path/to/your_openapi_spec.json - Restart the server (the catalog is loaded once at startup).
Security notes
- Read-only by default.
upsert_recordandinvoke_actionrequireACUMATICA_ALLOW_WRITES=1;delete_recordrequiresACUMATICA_ALLOW_DELETES=1. Enable them only when you mean to, ideally on a sandbox tenant. - Use a dedicated service account scoped to only the entities/roles you need, never a real person's login. A read-only role in Acumatica is a good second layer of defense.
.envis git-ignored. Keep credentials out of version control; prefer passing them through your MCP client'senvblock.
Prior art and related projects
This is not the first Acumatica-to-MCP or Acumatica-to-AI project. If this one does not fit your needs, look at these:
- grp-mcp: a far more capable MCP server with full CRUD, four client planes, and headless ERP setup.
- MCP4Acumatica: a remote MCP server (Cloudflare Workers) with per-user OAuth and role-based, read-only access.
- easy-acumatica: a mature Python REST SDK (not MCP) with dynamic model generation.
- CData Acumatica MCP Server: a read-only MCP backed by the CData JDBC driver.
This server's angle is deliberate minimalism: a small, dependency-light, self-hostable stdio server you can read top to bottom in one sitting, that works against any tenant with nothing but a service account.
License
MIT (c) Christian Zagazeta
Disclaimer
Not affiliated with or endorsed by Acumatica, Inc. "Acumatica" is a trademark of its respective owner. Use at your own risk against your own tenants.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.