Start a project

How to connect ChatGPT to SAP Business One (and Claude) with a secure MCP server

By Zain Abbas, Kodenova · Updated

Short answerTo connect ChatGPT to SAP Business One, run a small MCP server between the two. The server exposes a few named, read-only tools, such as sales lookup, stock on hand and customer balance, and calls the Service Layer or read-only SQL views with a restricted SAP B1 user. Claude connects to the same server.
A 27-second look at connecting ChatGPT and Claude to SAP Business One through an MCP server.

You can connect ChatGPT to SAP Business One without giving the AI access to your database. A small MCP (Model Context Protocol) server sits in between, offers ChatGPT or Claude a short list of read-only tools, and returns only the data each user is allowed to see. This guide shows the architecture, the tools to expose, the security rules and the ready-made alternatives.

Most SAP Business One users already know where their data is. The problem is getting to it quickly. A sales manager wants last month’s sales by customer. A director wants to know which customers are over their credit limit. Today that means a saved query, a Crystal report or a call to the person who knows SAP.

An MCP server lets the same people ask ChatGPT or Claude, and get an answer built from live SAP B1 data. Done carelessly, it also opens a new door into your ERP. This guide covers how to do it properly.

What is the Model Context Protocol?

The Model Context Protocol (MCP) is an open standard for connecting AI applications to outside systems. Anthropic introduced it in November 2024. In December 2025 Anthropic donated it to the Agentic AI Foundation, a fund under the Linux Foundation co-founded with Block and OpenAI. The current specification is dated 28 July 2026.

Support is broad now:

  • Claude supports remote MCP servers as custom connectors on Free, Pro, Max, Team and Enterprise plans. On Team and Enterprise, an owner adds the connector once and each member signs in to it.
  • ChatGPT supports custom MCP servers with full MCP support, including write actions, on Business and Enterprise/Edu workspaces on the web. Admins and owners add and publish them; on Enterprise/Edu, admins can also authorise selected members. OpenAI’s help page does not list Plus or Pro (checked 6 November 2026).
  • Others, including Gemini, Microsoft Copilot, VS Code and Cursor, also act as MCP clients.

The practical point: you build one MCP server for your SAP B1, and it works with whichever assistant your team uses.

How does the architecture work?

The MCP server is a small web service that sits between the AI assistant and SAP Business One. The AI never connects to SAP B1 directly.

 User (ChatGPT / Claude)
        |
        |  MCP over HTTPS + OAuth sign-in
        v
 +---------------------------+
 |  MCP server               |
 |  - tool definitions       |
 |  - user -> SAP permission |
 |  - row/field filters      |
 |  - audit log              |
 +---------------------------+
        |                |
        | Service Layer  | read-only SQL views
        | (restricted    | (SQL Server or HANA,
        |  B1 user)      |  read-only DB login)
        v                v
     SAP Business One company database

Two data paths are common. The Service Layer is SAP’s REST API for Business One. It follows OData and respects SAP B1 authorizations, so it is the cleaner choice for documents and master data. Read-only SQL views are faster for reporting questions, such as sales by month or ageing, where the Service Layer would need many calls. Many projects use both. If you have not called the Service Layer before, start with our Service Layer guide (login, $filter, paging).

What are the ways to connect SAP Business One to Claude or ChatGPT?

There are four common ways today: build your own MCP server on the Service Layer, use an MCP server that comes with an SAP B1 extension product, use a local open-source server, or use a hosted connector service. SAP has also published MCP server sample code. They differ mainly in whether the AI can write, where the server runs and which AI client can reach it.

OptionRead/writeHostingClient plan neededBest for
Custom MCP server on the Service Layer (the approach in this guide)Read-only by default; write tools only if you add them, ideally as drafts a person approvesYour server or cloudA client that supports remote MCP (see the FAQ below)Exactly the tools and permissions your company wants
CompuTec AppEngine MCP ServerRead and write; changes only for users with the SAP B1 authorization “Allow MCP Server to execute modification commands”Self-hosted inside CompuTec AppEngine (HTTPS /mcp endpoint, sign-in through the SAP B1 authentication server); AppEngine 3.2509.1 or laterClaude, ChatGPT, GitHub Copilot or Claude Code (listed in the vendor docs)Companies that already run AppEngine
CData SAP Business One MCP server (open source, MIT)Read-only (SELECT queries); CData also sells MCP products with write accessLocal stdio on the same PC as the AI client; needs a CData JDBC driver licenceA desktop client on the same machine, such as Claude DesktopOne analyst exploring data on their own PC
Hosted connector service, for example anythingmcp (open source, AGPL-3.0)Mostly read; its SAP B1 guide lists 23 read tools and one tool that creates sales ordersVendor cloud (EU) or self-hosted with Docker; connects through the Service LayerA client that supports remote MCPA quick start without building a server
SAP “MCP Server for SAP Business One – Sample Code”Exposes Service Layer services as tools; reported as sample code for reference, not a supported productSelf-hosted; reported to need SAP Business One 10.0 FP 2608 or laterDepends on how you host itDevelopers who want SAP’s own starting point

Checked October 2026 against each vendor’s documentation (see Sources). Features change quickly; confirm with the vendor before you decide.

Connect SAP Business One to LangChain or CrewAI

You connect SAP Business One to LangChain or CrewAI through the same MCP server, because both frameworks can act as MCP clients. In three steps:

  1. Run the MCP server. It calls the Service Layer as a dedicated SAP B1 user with limited rights and exposes SAP B1 data as named tools.
  2. Connect the framework. LangChain uses MultiServerMCPClient from langchain-mcp-adapters; CrewAI uses MCPServerAdapter from crewai-tools[mcp].
  3. Give the tools to the agent. Load only the tools that agent needs, start read-only, and keep any write action as a draft for a person to approve.

The details per framework:

  • LangChain: the langchain-mcp-adapters package connects LangChain agents to MCP servers. MultiServerMCPClient takes the server address, get_tools() loads its tools, and you pass them to the agent. By default each tool call opens a fresh MCP session; the LangChain docs show client.session() when you need one session across calls.
  • CrewAI: install crewai-tools[mcp] and use MCPServerAdapter with the server URL (streamable HTTP or SSE) or a local stdio command. The CrewAI docs recommend a with block so the connection is opened and closed for you, and you can pass tool names to load only the tools an agent needs. The adapter brings in MCP tools only, not prompts or resources.
  • Other frameworks: any client that speaks MCP can use the server the same way. Check the framework’s own MCP docs for the transport it supports.

Keep the same rules as for ChatGPT and Claude. An agent framework runs tools without a person reading each step, so read-only tools are the safe start, and any write tool should still create a draft that a person approves in SAP B1, under the permissions of the SAP B1 user the server uses.

Which tools should the MCP server expose?

An MCP server offers the AI a list of named tools. Each tool has a clear purpose and fixed inputs. The AI picks a tool and fills the inputs. It does not write its own SQL.

ToolInputsWhat it returns
sales_lookupcustomer, item group, date rangeInvoice totals by period, net of credit memos
stock_on_handitem code or name, warehouseOn hand, committed, ordered, available
customer_balancecustomer code or nameBalance, credit limit, overdue amounts by age bucket
open_orderscustomer or itemOpen sales orders with due dates
document_lookupdocument type and numberHeader and lines of one invoice or order

Start with five to ten tools. A short list with clear descriptions gives better answers than fifty vague ones. If you need help shaping the Service Layer calls behind each tool, our Service Layer query builder is a quick way to test them.

Example prompts

Once the connector is added, people ask in plain language and the AI picks a read-only tool. These prompts match the tools in the table above:

  • “What were our sales to Customer C20000 this year, month by month, net of credit memos?”
  • “Show total sales by item group for the last quarter compared with the same quarter last year.”
  • “How many units of item A00001 are on hand, committed and available in each warehouse?”
  • “Can we ship 50 units of item A00001 from the main warehouse, or is the stock already committed to open orders?”
  • “What is the open balance of Customer C20000, and how much of it is more than 60 days overdue?”
  • “How much does Customer C30000 owe us in total, and how close are they to their credit limit?”
  • “Which open sales orders for item A00001 are due in the next 14 days?”
  • “Show the header and lines of A/R invoice 1045.”

Each answer comes from a tool call, so the user can ask which tool and which filters were used, and check the figure in SAP B1.

Which security rules do we apply?

This is the part that matters most. An AI assistant with ERP access is a new kind of user, and it should get less trust than a human, not more.

  1. Use a read-only SAP user. Create a dedicated SAP B1 user and database login with read access only. No direct database writes, ever.
  2. Map each person to their own permissions. The user signs in to the MCP server with OAuth. The server knows who they are and applies the same limits they have in SAP: branch, sales employee, warehouse, or no cost prices.
  3. Filter rows and fields in the server. Do not ask the model to hide data. If a sales rep should only see their own customers, the query must only return their customers.
  4. Cap result sizes. Return summaries and the top rows, not full tables. This protects data and keeps answers accurate.
  5. Log every call. Record who asked, which tool, which inputs and how many rows came back. You need this for audits and for debugging wrong answers.
  6. Plan for prompt injection. Text stored in SAP, such as a remark on a business partner, can contain instructions aimed at the AI. Both the MCP specification and the Claude and OpenAI docs warn about this. Read-only tools limit the damage. If you add write tools later, keep them as drafts that a person approves in SAP B1, and return SAP’s error code and text to the AI when a write fails, so it explains the real cause (see -5002 and other DI API errors).
  7. Keep tool annotations honest. Mark read tools as read-only. ChatGPT treats tools without that hint as write actions and asks the user to confirm them.

What does it cost to run?

There are three cost lines. We have not put fixed numbers here because they change; check current pricing with each vendor.

  • AI subscriptions. Each user needs a ChatGPT or Claude plan that supports connectors. Business and team plans are priced per seat. Check current pricing.
  • Hosting the MCP server. A small cloud VM or container is usually enough for one company. It needs HTTPS and a secure route to your SAP B1 server, such as a VPN or a private network link.
  • Building and maintaining it. Most of the effort goes into tool design, permission mapping and testing with real questions. After go-live, expect small changes as users ask things you did not plan for.

You do not pay per API call to OpenAI or Anthropic when users ask questions inside their own ChatGPT or Claude subscription. Usage limits of the plan still apply.

What are realistic use cases?

  • A sales manager asks, “Which customers bought less this quarter than the same quarter last year?”
  • A salesperson on a call checks stock and the customer’s overdue balance before promising a delivery.
  • Finance asks for customers over their credit limit with invoices older than 60 days.
  • Purchasing asks which items fall below minimum stock in the main warehouse.
  • A director asks for a short summary of this week’s sales against last week.

These are questions people already ask. MCP just removes the wait.

What are the limits you should accept?

  • The model can still be wrong. It may misread a column, mix up gross and net, or guess when the tool returns nothing. Grounded tools with exact field names, units and currency reduce this. They do not remove it.
  • Vague questions get vague answers. “How are we doing?” needs a defined meaning. Build tools around the reports your company already trusts.
  • It is not a replacement for reports. Month-end figures, tax returns and anything you sign should still come from SAP B1 reports.
  • Data quality shows. If item groups or sales employees are messy in SAP, the AI’s answers will be messy too.

How do you add the connector in ChatGPT and Claude?

You add the MCP server’s public HTTPS URL as a custom connector in the AI app. The menu names below are copied from the OpenAI and Anthropic help pages, checked 16 November 2026; both apps change these screens often.

ChatGPT (Business and Enterprise/Edu workspaces, on ChatGPT web):

  1. Go to Plugins, select the plus button, then Add custom MCP server.
  2. Enter a name, and under Connection enter the server’s HTTPS MCP endpoint URL.
  3. Configure authentication, tick I understand and want to continue, then select Create as a plugin.
  4. Review the tools ChatGPT found. In a chat, type @ and select the plugin.

On Business, only admins and owners can create and publish plugins. On Enterprise/Edu, admins can also allow members to create them.

Claude (Pro and Max):

  1. Go to Customize > Connectors, click + Add, then Add custom connector.
  2. Enter a name and the remote MCP server URL, then click Continue.
  3. Under Authentication, choose how users sign in, choose the OAuth client (Claude’s published identity is the recommended option), and click Add.
  4. In a chat, click +, open Connectors and switch the connector on.

On Team and Enterprise, an Owner or Primary Owner first adds the connector under Organization settings > Connectors; members then click Connect under Customize > Connectors.

How do you start?

  1. List the 10 to 20 questions your team asks most often.
  2. Group them into five to ten tools with fixed inputs.
  3. Create the read-only SAP B1 user and SQL views.
  4. Build the MCP server with OAuth sign-in, permission mapping and logging.
  5. Test with real users and real questions, and compare answers with SAP reports.
  6. Add it as a connector in Claude or ChatGPT for a small pilot group, then widen.

Open-source starter on GitHub: our read-only SAP Business One MCP server (MIT licence) shows this pattern in code: typed read-only tools on the Service Layer, field whitelists, row limits, saved queries only, and a mock mode that runs without SAP. Use it to try the approach before you build your own server.

We build these servers as part of our MCP server development and AI agents for ERP work. You can see one in our SAP B1 AI connector case study.

If you want ChatGPT or Claude to answer from your SAP Business One data, contact us with your SAP B1 version and the questions your team asks most.

Sources

Related services

FAQ

Frequently asked questions

What is the Model Context Protocol?

MCP is an open standard for connecting AI applications to external systems such as databases, files and business software. Anthropic introduced it in November 2024 and donated it to the Agentic AI Foundation under the Linux Foundation in December 2025. Claude, ChatGPT, Gemini, Microsoft Copilot, VS Code and Cursor all support it.

Can ChatGPT or Claude change data in SAP Business One through MCP?

Technically yes, if the MCP server exposes write tools. We recommend starting read-only. If you later add write actions, such as drafting a sales quotation, keep them as drafts that a person approves inside SAP B1.

Does the AI see my whole SAP Business One database?

No. The AI only sees what the MCP server returns from the tools you expose. A well-built server applies the user's permissions, limits rows and fields, and never passes raw database access to the model.

Which SAP Business One versions work?

Any version where you can reach the Service Layer (SAP HANA, and SQL Server on recent 10.0 feature packs) or read-only SQL views. The MCP server sits outside SAP B1, so no add-on is needed on user machines.

Can the AI give wrong answers from ERP data?

Yes. Models can misread figures or fill gaps. Grounded tools that return exact numbers, clear field names and a source reference reduce this, but users should still check important figures in SAP B1.

Does SAP Business One have a built-in MCP server?

Not as a ready, supported feature. SAP Help Portal has a page called 'MCP Server for SAP Business One – Sample Code', reported to require SAP Business One 10.0 FP 2608 or later. It is sample code that you host and adapt yourself; for production you still decide which tools to expose and how users sign in.

Which ChatGPT and Claude plans support custom MCP connectors?

Claude supports custom connectors using remote MCP on the Free, Pro, Max, Ultra, Team and Enterprise plans; Free is limited to one custom connector, and on Team and Enterprise an owner adds the connector first. In ChatGPT, OpenAI documents custom MCP servers for Business and Enterprise/Edu workspaces on ChatGPT web, added as plugins: on Business only admins and owners create and publish them, and on Enterprise/Edu admins can also allow members (checked 16 November 2026). Its help page does not list Plus or Pro.

Is it safe to connect ChatGPT to SAP Business One?

It is safe when the MCP server, not the model, enforces the rules: a dedicated read-only SAP B1 user, each person mapped to their own SAP permissions through OAuth sign-in, rows and fields filtered in the server, capped result sizes and a log of every call. Text stored in SAP can carry prompt injection, so keep any write action as a draft that a person approves in SAP B1.

Can I connect ChatGPT to SAP Business One without building my own server?

Sometimes. A hosted connector service or an MCP server that comes with an SAP B1 extension product, such as CompuTec AppEngine, can be a quicker start. The open-source CData server runs locally next to a desktop client such as Claude Desktop, so it suits one analyst rather than ChatGPT on the web. A custom server makes sense when you need your own tools, per-user permissions, approved write-back or a full audit log.

Can Kodenova build the MCP server that connects ChatGPT to our SAP Business One?

Yes. Kodenova is an independent SAP Business One developer that works alongside your SAP partner. We build MCP servers read-only by default, with OAuth sign-in, per-user permissions and logging, at a fixed price per phase, with 3 months of free support after go-live. You own the source code and documentation after each paid phase.

How do I connect SAP Business One to LangChain?

Through an MCP server for SAP Business One. Install langchain-mcp-adapters, point MultiServerMCPClient at the server, load its tools with get_tools() and pass them to your LangChain agent. The server, not LangChain, decides which SAP B1 data the tools return and which SAP B1 user they run as.

Can CrewAI agents use SAP Business One data?

Yes, through the same MCP server. Install crewai-tools[mcp] and connect MCPServerAdapter to the server URL, and your CrewAI agents can call the SAP B1 tools it exposes. Start with read-only tools, and let any write tool create a draft that a person approves in SAP B1.

Does SAP Business One have AI?

Yes. According to SAP News, SAP Business One added two generative AI features in August 2026: Ask AI, which answers contextual questions about business data a user selects, within that user's authorizations, and AI user-defined query, which lets non-technical users create shareable lists in plain language. SAP says version 11, open for a first partner preview in 2027, will add agentic AI to the Web client.

How do I connect SAP Business One to OpenAI or ChatGPT?

Through an MCP server that sits between ChatGPT and SAP Business One. The server calls the Service Layer as a dedicated SAP B1 user and exposes only the tools you choose, and you add it in ChatGPT as a custom MCP connector, which OpenAI documents for Business and Enterprise/Edu workspaces. The steps are in this guide; Kodenova builds such servers read-only by default, at a fixed price per phase.

Ready to get started?

Tell us what you need. You get a clear technical answer, a fixed scope and a price, usually within 24 hours.