1. Conduid
  2. Data
  3. B1 MCP Server
MCP server · Data

B1 MCP Server

Secure MCP server for SAP Business One database (HANA / MS SQL) and Service Layer operations

53Fair

Scored 19 hours ago · breakdown

About B1 MCP Server

B1 MCP Server is an MCP server published by bersimao in the Data category: secure MCP server for SAP Business One database (HANA / MS SQL) and Service Layer operations. Conduid read 7 tools from its source: check_connection, connect_database, execute_service_layer, execute_service_layer_write, execute_service_layer_write_unattended, execute_sql and 1 more. It is published to npm as b1-mcp-server and starts with npx.

The repository has 5 stars and 1 forks, and its last commit was on 25 Nov 2026. Conduid has no tagged release on record for it. Its topics include sap, sap-business-one, sap-b1, hana, mssql and service-layer.

Install

Claude Code
claude mcp add b1-mcp-server -- npx -y b1-mcp-server
npx
npx -y b1-mcp-server
From source
git clone https://github.com/bersimao/b1-mcp-server

Tools (7)

check_connectionCheck if the database and Service Layer connections are active and alive. Pings DirectDb (SELECT query) and Service Layer (GET request) independently. No parameters required. Reports status for both connections.
connect_databaseSwitch the active database and Service Layer connection to a different SAP Business One environment. Searches connection profiles by ID or database name (case-insensitive). Partial matches are only accepted when they resolve to a single profile. Each profile can include DirectDb (DB) credentials, Service Layer (SL) credentials, or both. When switching environments, each stale or non-matching side is disconnected before replacement; a healthy side that still matches the selected profile remains active. If only one side connects successfully, it remains active - retry the failed side after fixing credentials. Tracks failed login attempts per profile and warns about account lockout risk under the configured login policy. Available profiles: ${profileList} Use "list" as the query to reload and list all available profiles.
ParameterTypeDescription
query *stringThe database identifier to connect to. Can be the profile ID or database name. Use "list" to see all available profiles.
execute_service_layerExecute a read-only OData GET against the currently connected SAP Business One Service Layer. Writes go through execute_service_layer_write. Denied when the connected profile's slAllowedMethods (printed by connect_database) omits GET. Query options are allowed; absolute URLs, Login/Logout and $batch are denied.
ParameterTypeDescription
methodstringAlways GET. PATCH, POST and DELETE go through execute_service_layer_write
url *stringRelative OData endpoint without the configured /b1s/v1/ or /b1s/v2/ root
execute_service_layer_writeExecute a guarded OData write (PATCH, POST or DELETE) against the currently connected SAP Business One Service Layer. These are real writes to the company database. The verb must be in the connected profile's slAllowedMethods, and database must equal the connected Service Layer database exactly — connect_database prints both. A mismatch is denied. Approval follows the profile's slWriteApproval, also printed by connect_database. "elicitation" (default): the server asks the user through an MCP approval form; clients without form elicitation cannot write. "client" or "none": the server executes after this client's own permission prompt, honoured only for Claude Code. On a "none" profile, prefer execute_service_layer_write_unattended, which does the same write without any approval; use this tool there only when the user asks to confirm the write. MCP_DRY_RUN previews but never executes a write, and MCP_SL_WRITES_ENABLED=false disables every write globally. PATCH and DELETE accept one directly keyed entity endpoint only. POST accepts an entity set, a service operation, or one action on a keyed entity (Orders(12)/Close). Query options, navigation paths, absolute URLs, Login/Logout and $batch are denied.
execute_service_layer_write_unattendedExecute a guarded OData write (PATCH, POST or DELETE) with NO approval of any kind, for development companies. Denied unless the connected profile has slWriteApproval "none" (printed by connect_database); otherwise use execute_service_layer_write. These are real writes to the company database. Every other rule of execute_service_layer_write applies unchanged: database must equal the connected Service Layer database, the verb must be in slAllowedMethods, the same endpoint shapes are enforced, MCP_DRY_RUN previews and MCP_SL_WRITES_ENABLED=false disables it.
execute_sqlExecute a raw SQL statement against the currently connected database. All SQL, whether written by the user or generated by you, goes through the same server-side validation. IMPORTANT: Before calling this tool, you MUST confirm which database the user intends to query. If the user has not explicitly stated the target database in their message, ASK them first. Do NOT assume the currently connected database is the intended target. READ-ONLY: only SELECT (and read-only DO BEGIN...END blocks) execute. Data-changing statements are blocked server-side. If the user needs a write (INSERT/UPDATE/DELETE), do NOT call this tool — generate the SQL and give it to the user to run in a real DB client (HANA Studio / DBeaver / hdbsql), where a human can review the statement and control its transaction handling. Rules enforced server-side: - READ-ONLY: INSERT/UPDATE/DELETE/DROP are blocked for everyone — no confirmation bypass. - Direct EXEC/EXECUTE/CALL: blocked (stored procedures are disabled). - CREATE/ALTER: blocked. - MS SQL pass-through (OPENQUERY/OPENROWSET/OPENDATASOURCE): blocked.
ParameterTypeDescription
query *stringThe SQL statement to execute (SELECT only — read-only server)
get_schema_infoRetrieve metadata about tables, columns, or procedures in the currently connected database. Read-only. Use this to explore the schema before writing queries. For "columns": provide the table name in "filter". For "tables"/"procedures": filter is optional (LIKE pattern). IMPORTANT: Before calling this tool, you MUST confirm which database the user intends to query. If the user has not explicitly stated the target database in their message, ASK them first. Do NOT assume the currently connected database is the intended target.
ParameterTypeDescription
filterstringFor columns: table name (required). For tables/procedures: optional LIKE pattern.
objectType *stringType of metadata to retrieve

Security checks

6 checks have not been run yet.

Questions

About B1 MCP Server

How do I install B1 MCP Server?

In Claude Code, run claude mcp add b1-mcp-server -- npx -y b1-mcp-server. Other MCP clients take the command after "--" in their server configuration.

Is B1 MCP Server safe to use with an AI agent?

Its trust score is 53 out of 100 (fair). Conduid hasn't run static security checks on this repository yet, so review the source yourself before granting it credentials. It has no ConduID identity yet, so agent calls to it are not receipted.

Is B1 MCP Server still maintained?

Yes — the last commit was 6 days ago. The repository has 5 stars and 1 forks.

What tools does B1 MCP Server provide?

Conduid read 7 tools from the source: check_connection, connect_database, execute_service_layer, execute_service_layer_write, execute_service_layer_write_unattended, execute_sql and get_schema_info. 4 of them publish their parameters, listed under Tools above.