ONE-MCP
MCP ONE
MCP server for the ONE Framework ERP — gives Claude autonomous access to explore your data model, run queries, and understand business logic.
Setup
1. Install dependencies
npm install2. Configure
Copy .env.example to .env and fill in your instance details:
cp .env.example .envONE_URL=https://your-instance.oneerp.ro
ONE_API_KEY=your-api-key-here3. Register with Claude Code (project-level)
The project already has a .mcp.json file. Update it with your credentials, then restart Claude Code.
Or manually add a project-level MCP server:
// .mcp.json (project root)
{
"mcpServers": {
"one": {
"command": "npx",
"args": ["tsx", "src/index.ts"],
"cwd": "D:\\ONE-Projects\\MCP-ONE",
"env": {
"ONE_URL": "https://your-instance.oneerp.ro",
"ONE_API_KEY": "your-api-key"
}
}
}
}Tools
Discovery & Reading
Tool | Description |
| Server version + authenticated user |
| Execute FETCH queries (filter, link, aggregate) |
| Discover all entities in the system |
| Full schema: properties + relationships |
| Read a single record by entity name + key |
Write Operations
Tool | Description |
| Create a new record ⚠️ |
| Update an existing record ⚠️ |
Workflows
Tool | Description |
| Workflow definitions + event bindings |
| Workflow source code + metadata |
| Run a workflow method with arguments |
Security
No DELETE tool — the MCP does not expose a delete operation
API key permissions are inherited from the associated user's roles — ensure the user has only View + Create/Update access in ONE
All FETCH queries run under the security context of the authenticated user
Create/Update tools require explicit user confirmation (MCP permission model)
Development
npm run dev # Run with tsx (stdio transport)
npm run build # Compile TypeScript
npm run typecheck # Type checking only