Xentral MCP HTTP Server
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Xentral MCP HTTP Server
A Model Context Protocol (MCP) HTTP server for Xentral ERP integration that exposes the complete Xentral API — every endpoint of the official Xentral OpenAPI specification — as MCP tools, plus curated convenience tools for daily ERP workflows.
🚀 Features
Full API coverage: 339 tools covering all documented Xentral API endpoints (customers, products, sales orders, invoices, warehousing, accounting, analytics, POS, production, …)
Curated tools: Hand-written convenience tools with table-formatted output (
search_customers,search_products) — they override generated tools on name collisionsReal MCP HTTP Server: Full JSON-RPC 2.0 compatible MCP implementation
Xentral-native filtering: deepObject query serialization (
filter[0][key]=name&filter[0][op]=equals&filter[0][value]=Miller), pagination (page[number],page[size]) and sorting (order[0][field])Binary downloads: PDF/CSV/ZIP responses (e.g. invoice PDFs) are saved to
downloads/instead of flooding the context windowResponse truncation: Large list responses are trimmed with a hint to use filters/pagination
Authenticated by default: Bearer-token auth on every endpoint; binds to loopback only and refuses to expose itself to the network without a token
SSRF-hardened: API base URL is validated (HTTPS, host allow-list, internal/metadata addresses blocked) before any request is sent
Runtime Configuration: Update API credentials dynamically without restart
Redacted Logging: Request method, tool name and argument keys are logged — never secret values or PII
Related MCP server: pfx MCP Server
📋 Requirements
Python 3.9 or higher
Xentral instance with API access (create a personal access token)
🛠️ Installation
git clone https://github.com/matthiashuebner/xentral-mcp.git
cd xentral-mcp
pip install -r requirements.txt
cp .env.example .env
# Edit .env: set XENTRAL_API_URL (instance base URL, no /api suffix),
# XENTRAL_API_KEY (personal access token), and MCP_AUTH_TOKENGenerate an auth token:
python -c "import secrets; print(secrets.token_urlsafe(32))"🔒 Security model
Loopback by default.
MCP_SERVER_HOSTdefaults to127.0.0.1. The server refuses to start on any other interface unlessMCP_AUTH_TOKENis set — never expose it without a token.Token auth. Every endpoint except
/healthrequiresAuthorization: Bearer <MCP_AUTH_TOKEN>. Without a token configured, access is tolerated only on loopback (with a startup warning).No CORS. Cross-origin access is disabled so a website cannot drive the API from the operator's browser.
SSRF guard.
XENTRAL_API_URLmust be HTTPS (except localhost) and must not resolve to a private/loopback/link-local/metadata address. SetXENTRAL_ALLOWED_HOSTSto pin the allowed host(s).No debug server. The Werkzeug interactive debugger is never enabled.
🏃 Running the Server
Local development (loopback, dev server):
python mcp_server.pyProduction — use a real WSGI server behind a TLS-terminating, authenticating reverse proxy. Do not expose the Flask development server directly:
gunicorn --bind 127.0.0.1:8888 wsgi:appThe server registers 341 tools. Authenticated calls carry the bearer token:
curl -H "Authorization: Bearer $MCP_AUTH_TOKEN" http://localhost:8888/info🔧 Tool Catalog (auto-generated API tools)
All API tools are compiled from the official OpenAPI spec into
xentral/openapi/catalog.json (committed to the repo). When Xentral
publishes API changes, regenerate it with:
python scripts/generate_catalog.py # downloads the latest spec
python scripts/generate_catalog.py --spec my-spec.json # or use a local fileTool names follow the spec's operation IDs: customer.list.v2 →
customer_list_v2, salesOrder.actions.cancel → sales_order_actions_cancel.
See mcp-tools-list.md for the full list grouped by
resource.
Tool arguments
Path parameters (e.g.
id) are top-level argumentsfilter: array of{key, op, value}objects — allowed keys/operators are embedded in each tool's schemapage:{"number": "1", "size": "20"}order: array of{field, dir}objects (dir:asc/desc)body: JSON request body for create/update operations (schema included)content_type: optional vendor content type for special behavior (e.g.application/vnd.xentral.upsert+jsononproduct_create)
🔍 Testing
All endpoints except /health require the bearer token when MCP_AUTH_TOKEN
is set.
# Health check (public)
curl http://localhost:8888/health
# List all tools
curl -X POST http://localhost:8888/mcp \
-H "Authorization: Bearer $MCP_AUTH_TOKEN" \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'
# Call a tool: list customers named Miller
curl -X POST http://localhost:8888/mcp \
-H "Authorization: Bearer $MCP_AUTH_TOKEN" \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"customer_list_v2","arguments":{"filter":[{"key":"name","op":"equals","value":"Miller"}],"page":{"number":"1","size":"10"}}}}'📁 Project Structure
mcp_server.py- Main Flask HTTP server & tool discoverymcp_protocol.py- MCP JSON-RPC protocol implementationconfig.py- Configuration managementscripts/generate_catalog.py- Compiles the OpenAPI spec into the tool catalogxentral/openapi/- Generated tool catalog + generic API executorcatalog.json- Compiled tool definitions (339 endpoints)executor.py- Generic HTTP executor (paths, deepObject queries, bodies)loader.py- Builds MCP tools from the catalog
xentral/*.py- Hand-written convenience tools (auto-discovered)mcp_client.py- CLI testing clientmcp-tools-list.md- Generated overview of all tools.env.example- Configuration template
🌐 HTTP Endpoints
POST /mcp- Main MCP JSON-RPC endpoint (initialize, tools/list, tools/call)GET /health- Health checkGET /info- Server informationGET /tools- List all tools (plain JSON)POST /config/credentials- Update API credentials at runtime
📞 Support
For issues, check logs in mcp_server.log. API errors returned by Xentral
(including validation details) are passed through to the MCP client.
Happy ERP automation! 🚀
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
JTL-Wawi ERP data, e-mail, CRM and marketplace tools for AI assistants. Sign in with OAuth.
weclapp ERP in your AI assistant: reads instantly, writes only after a preview you approve.
AI agents for CRM, mail, calendar, ERP and accounting - you approve. EU-hosted, OAuth.
The integration hub for your CRM, field service and accounting apps: integrations and AI agents.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceIntegrates with Odoo ERP systems, enabling AI assistants to interact with Odoo data and functionality through the Model Context Protocol.MIT
- AlicenseNot gradedqualityBmaintenanceConnects AI assistants like Claude, ChatGPT, and Gemini to Forterro Proffix Px5 ERP, enabling natural language queries, data access, and workflow automation via the Model Context Protocol.2MIT

@vitrion/zentria-mcpofficial
AlicenseBqualityBmaintenanceEnables AI assistants to access and manage Zentria CRM data, including sales, customers, to-dos, and more, through the Model Context Protocol.80397 npmMIT- AlicenseNot gradedqualityDmaintenanceEnables querying products and stock, sales orders, contacts, invoices, payables/receivables, and creating contacts through the official ERP API.MIT