New advertisers: 50% off your first month with code FIRSTMONTHSee slots
kodenova avatar

SAP Business One (read-only)

kodenova/sap-b1-mcp

Read-only access to SAP Business One partners, items, orders, invoices, and stock via Service Layer.

tools
9
auth
Secret needed
transport
STDIO
env vars
8
last updated
Nov 17, 2026
View on GitHub

What it does

  • Reads partner and item data with get_business_partner, search_business_partners, get_item, and search_items, with typed fields and row limits
  • Reads sales and finance data with get_open_sales_orders, get_customer_balance, and get_open_invoices, plus get_stock_by_warehouse for per-warehouse stock
  • Runs only administrator-registered queries through run_saved_query; the server has no write, delete, or free-form SQL tools
  • Designed for sales, credit, and collections questions over one company database, and it can run on mock demo data without SAP

Tools

9 tools

Public tool metadata for what this MCP can expose to an agent.

get_business_partnerOne customer, supplier or lead by exact CardCode.

One customer, supplier or lead by exact CardCode.

No parameter schema in public metadata yet.

search_business_partnersPartners whose code or name contains text.

Partners whose code or name contains text.

No parameter schema in public metadata yet.

get_itemOne item master record by exact ItemCode.

One item master record by exact ItemCode.

No parameter schema in public metadata yet.

search_itemsItems whose code or name contains text.

Items whose code or name contains text.

No parameter schema in public metadata yet.

get_open_sales_ordersOpen sales orders, newest first.

Open sales orders, newest first.

No parameter schema in public metadata yet.

get_customer_balanceAccount balance, open orders, open deliveries, credit limit and available credit.

Account balance, open orders, open deliveries, credit limit and available credit.

No parameter schema in public metadata yet.

get_open_invoicesOpen A/R invoices with unpaid amount and days overdue, plus a total.

Open A/R invoices with unpaid amount and days overdue, plus a total.

No parameter schema in public metadata yet.

get_stock_by_warehouseIn stock, committed, ordered and available per warehouse for one item.

In stock, committed, ordered and available per warehouse for one item.

No parameter schema in public metadata yet.

run_saved_queryResult of a query pre-registered by an administrator.

Result of a query pre-registered by an administrator.

No parameter schema in public metadata yet.

Configuration

SAPB1_SERVICE_LAYER_URL*

Service Layer base URL, e.g. https://your-b1-server:50000/b1s/v1

SAPB1_COMPANY_DB*

Company database (schema) name

SAPB1_USERNAME*

Dedicated B1 user with read-only authorizations

SAPB1_PASSWORD*secret

Password of that B1 user

SAPB1_ALLOW_SELF_SIGNEDdefault: false

Set to true only if your Service Layer uses a self-signed certificate

SAPB1_MAX_ROWSdefault: 50

Maximum rows any tool may return (default 50, hard cap 500)

SAPB1_SAVED_QUERIES_FILE

Path to the saved-queries JSON file used by run_saved_query

SAPB1_MOCKdefault: false

Set to true to use bundled demo fixtures instead of SAP

Readme

sap-b1-mcp: read-only SAP Business One MCP server

An open-source Model Context Protocol server that lets AI assistants (Claude, ChatGPT via a bridge, Cursor, VS Code and other MCP clients) read data from one SAP Business One company through the Service Layer REST API.

It is a deliberately small, auditable starter:

  • Read-only by design. There are no tools that create, change or delete anything, and the HTTP client refuses any request other than GET, Login, Logout and running a pre-created SQLQueries entry.
  • No free SQL and no free filters. Every tool has a typed input schema, a row limit and a field whitelist. Custom reports go through run_saved_query, which only runs queries an administrator registered in a config file.
  • Credentials stay private. They come from environment variables, are never logged, and are redacted from every error message.
  • Runs without SAP. SAPB1_MOCK=1 serves bundled demo fixtures, so you can try it and run the tests on any machine.

View the full README on GitHub

Details

Repository
github.com/kodenova/sap-b1-mcp
Website
kodenova.com/services/mcp-server-development
Categories
Business, Legal & HR, E-commerce
Package
@kodenova/sap-b1-mcp
Transport
STDIO
Auth
Required
Registry
MCP registry, active

Similar to SAP Business One (read-only)

More Business, Legal & HR