MCP serverMCP servertypeExposes tools to a coding agent over MCP.See every one →What this type is →independently maintainedindependently maintainedoriginPublished by one person or a small company outside SAP. Says nothing about quality; the readings say that.See every one →

sap-api-hub-mcp

A read-only MCP server over the SAP Business Accelerator Hub catalogue: categories, search, metadata, resources, specs and packages, reached as the caller's own SAP user.

Whether an SAP API exists, what its specification says and whether it is published for use are all answerable from the Business Accelerator Hub, and the catalogue is behind an SAP login. This logs in to api.sap.com through a Playwright browser, caches the cookies, and then reads the catalogue and specification endpoints over plain HTTP. The browser is used for authentication and nothing else. Login is username and password or an SAP Passport certificate, and AUTH_METHOD=auto prefers the password pair when both are configured. It is published to npm on its own as sap-api-hub-mcp and developed in the sap-mcp-servers monorepo, which shares one browser-login module across it, sap-roadmap-mcp and sap-note-search-mcp, so one SSO session serves all three.

Facts

Latestv0.1.5ReleasedLast pushLicenceApache-2.0

Where it sits

Lives in
Provides
DocumentationBTPDocumentationcapabilityFinding the answer in what has already been written, and writing it where it has not — first-party documentation made searchable by something other than a person scrolling it, including by an agent, and a document of custom code produced from the code itself.

Who is behind it

Marian ZeisMarian ZeisPersonMaintains this
In the atlas: maintains 35, contributes to 86, wrote 25
@marianfoo
maintainerDavid SlugaPersonContributes to this
In the atlas: contributes to 4
@army113
1 contributor

Before choosing this

Conditions

PracticalFunctional boundary

The maintainer states it is unofficial, not endorsed by SAP, and that it uses authenticated Hub web and catalogue endpoints and browser session cookies in ways SAP's terms of service, SAP account terms or an organisation's own policies may restrict. The same README asks the reader not to use it for production, broad distribution or shared access without explicit approval, and says that installing it grants no permission to automate SAP services.

What it declares

Every artifact

Type
MCP server
Origin
Independently maintained
Runtime
Node.js

As an MCP server

Type declarations
declared
Runs as
local process
Transport
stdioHTTP
Authentication
user and passwordX.509
Read-only
yesstates it is

Connections2

Install

npm add sap-api-hub-mcp

Derived from the package name. No recipe recorded; the README has the configuration.

Your machinemarianfoo/sap-mcp-servers — README, Running a server, checked 2026-09-18: “Each server is a stdio/HTTP MCP server.”stdio or HTTPYour MCP client, actorYour MCP clientsap-api-hub-mcp, modulesap-api-hub-mcp
SAPnot SAP's, or the project's ownstated in the document

README

quoted from marianfoo/sap-mcp-servers under Apache-2.0, read
marianfoo/sap-mcp-servers/packages/api-hub/README.mdOn GitHub

SAP API Hub MCP Server

Part of the sap-mcp-servers monorepo (npm workspaces) — published to npm independently as sap-api-hub-mcp with build provenance.

TypeScript MCP server for read-only SAP Business Accelerator Hub catalog access.

The server logs in to api.sap.com through Playwright, caches browser cookies, then exposes MCP tools for catalog categories, search, metadata, resources, specs, and packages. Authentication can use SAP username/password or SAP Passport/PFX certificate auth. In AUTH_METHOD=auto, username/password is preferred when both password and PFX are configured, matching mcp-sap-notes. The browser is used only to authenticate and collect SAP session cookies; all API Hub data retrieval uses HTTP catalog/spec endpoints.

Important Warning

This project is unofficial and is not endorsed by SAP. It uses authenticated SAP Business Accelerator Hub web/catalog endpoints and browser session cookies in ways that may be restricted by SAP terms of service, SAP account terms, or your organization's policies. Publishing, installing, or using this package does not grant permission to automate SAP services.

Use this MCP server only at your own risk. You are responsible for checking whether this usage is allowed for your SAP account, tenant, data, and jurisdiction. Do not use it for production, broad distribution, or shared access unless you have explicit approval.

Install From npm

npm install -g sap-api-hub-mcp
# or use npx without a global install (see MCP config below)

On first install, the package runs playwright install chromium for SAP login. To skip that (for example in CI), set PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 and run npm run install:browsers in the package directory when you need auth.

Copy env.example to a path outside the package (for example ~/.config/sap-api-hub-mcp/.env) and point the server at it:

ENV_FILE=/absolute/path/to/.env
API_HUB_TOKEN_CACHE_FILE=/absolute/path/to/api-hub-token-cache.json

Development Setup

This package lives in the sap-mcp-servers monorepo — clone and build from the repo root:

git clone https://github.com/marianfoo/sap-mcp-servers.git
cd sap-mcp-servers
npm install                # installs all workspaces + links @marianfoo/sap-mcp-auth locally
npm run install:browsers   # one-time: Chromium for Playwright login
npm run build              # builds auth first, then the servers → this one lands in packages/api-hub/dist

Build just this package with npm run build -w sap-api-hub-mcp (after auth is built).

Fill the scaffolded .env:

AUTH_METHOD=auto
SAP_USERNAME=your.email@company.com
SAP_PASSWORD="your_sap_password"
HEADFUL=false

When using a .env file, quote any value containing #; dotenv otherwise treats # and everything after it as a comment. For example, use SAP_PASSWORD="My#Pass". The same applies to PFX_PASSPHRASE.

Optional SAP Passport/PFX fallback:

PFX_PATH=/absolute/path/to/sap-passport.pfx
PFX_PASSPHRASE="your-passphrase"

AUTH_METHOD=auto chooses auth in this order:

  1. SAP_USERNAME + SAP_PASSWORD
  2. PFX_PATH + PFX_PASSPHRASE

Set AUTH_METHOD=password or AUTH_METHOD=certificate to force one path.

The default is headless browser login (HEADFUL=false). If SAP requires MFA or manual login, set:

HEADFUL=true

The cookie cache is stored in api-hub-token-cache.json in the server working directory and expires after MAX_COOKIE_AGE_H hours.

API Hub auth first opens the shared SAP login start URL (SAP_LOGIN_URL, default https://me.sap.com/home) to establish SAP SSO, then opens api.sap.com to mint API Hub-specific cookies. Set SAP_SSO_STORAGE_STATE, for example ~/.sap-mcp/sso-storage-state.json, if you want SAP MCP servers to reuse the same accounts.sap.com browser SSO cookies. Each app still keeps its own app-specific token cache.

For installed/package usage you can point the server at an explicit env file and token cache path:

ENV_FILE=/absolute/path/to/.env
API_HUB_TOKEN_CACHE_FILE=/absolute/path/to/api-hub-token-cache.json

Browser And API Boundary

  • Browser automation is limited to src/auth.ts, where Playwright opens SAP login and collects cookies. It runs headless unless HEADFUL=true.
  • API Hub tools do not scrape pages or inspect DOM content.
  • API Hub data comes from HTTP calls in src/api-hub-client.ts, including /api/1.0/containergroup/ContentTypes, /api/1.0/searchservice, /odata/1.0/catalog.svc/..., and $value spec endpoints.

Build

npm run build

Run

Local stdio mode, for desktop MCP clients:

npm run serve:stdio

Streamable HTTP mode:

MCP_TRANSPORT=streamable-http MCP_PORT=3001 npm run serve:http

Default HTTP endpoint:

http://127.0.0.1:3001/mcp

Config knobs:

MCP_TRANSPORT=stdio          # stdio | streamable-http
MCP_HOST=127.0.0.1
MCP_PORT=3001
MCP_HTTP_PATH=/mcp

Stdio MCP Client Config

Credentials can be set directly in the MCP client env block (no .env file required). Values from mcp.json take precedence over any .env file on disk.

Password auth:

{
  "mcpServers": {
    "sap-api-hub": {
      "command": "npx",
      "args": ["-y", "sap-api-hub-mcp"],
      "env": {
        "AUTH_METHOD": "password",
        "SAP_USERNAME": "your.email@company.com",
        "SAP_PASSWORD": "your_sap_password",
        "API_HUB_TOKEN_CACHE_FILE": "/absolute/path/to/api-hub-token-cache.json",
        "MCP_MODE": "true"
      }
    }
  }
}

Certificate (PFX) auth:

{
  "mcpServers": {
    "sap-api-hub": {
      "command": "npx",
      "args": ["-y", "sap-api-hub-mcp"],
      "env": {
        "AUTH_METHOD": "certificate",
        "PFX_PATH": "/absolute/path/to/sap-passport.pfx",
        "PFX_PASSPHRASE": "your-passphrase",
        "API_HUB_TOKEN_CACHE_FILE": "/absolute/path/to/api-hub-token-cache.json",
        "MCP_MODE": "true"
      }
    }
  }
}

auto tries password first, then certificate (same as env.example):

{
  "mcpServers": {
    "sap-api-hub": {
      "command": "npx",
      "args": ["-y", "sap-api-hub-mcp"],
      "env": {
        "AUTH_METHOD": "auto",
        "SAP_USERNAME": "your.email@company.com",
        "SAP_PASSWORD": "your_sap_password",
        "PFX_PATH": "/absolute/path/to/sap-passport.pfx",
        "PFX_PASSPHRASE": "your-passphrase",
        "API_HUB_TOKEN_CACHE_FILE": "/absolute/path/to/api-hub-token-cache.json",
        "MCP_MODE": "true"
      }
    }
  }
}

Optional: load a .env file instead of inline secrets:

{
  "mcpServers": {
    "sap-api-hub": {
      "command": "npx",
      "args": ["-y", "sap-api-hub-mcp"],
      "env": {
        "ENV_FILE": "/absolute/path/to/.env",
        "API_HUB_TOKEN_CACHE_FILE": "/absolute/path/to/api-hub-token-cache.json",
        "MCP_MODE": "true"
      }
    }
  }
}

Use absolute paths for PFX_PATH and cache files when using npx (working directory may vary). For MFA bootstrap, add "HEADFUL": "true" temporarily.

Global install: replace "command": "npx", "args": ["-y", "sap-api-hub-mcp"] with "command": "sap-api-hub-mcp".

Local development:

{
  "mcpServers": {
    "sap-api-hub": {
      "command": "node",
      "args": ["/absolute/path/to/sap-api-hub-mcp/dist/mcp-server.js"],
      "env": {
        "SAP_USERNAME": "your.email@company.com",
        "SAP_PASSWORD": "your_sap_password",
        "MCP_MODE": "true"
      }
    }
  }
}

Supported env keys: SAP_USERNAME, SAP_PASSWORD, PFX_PATH, PFX_PASSPHRASE, AUTH_METHOD, HEADFUL, MFA_TIMEOUT, API_HUB_TOKEN_CACHE_FILE, SAP_SSO_STORAGE_STATE, ENV_FILE, MCP_MODE.

Streamable HTTP MCP client config:

{
  "mcpServers": {
    "sap-api-hub": {
      "url": "http://127.0.0.1:3001/mcp"
    }
  }
}

Tools

  • categories - list API Hub content categories and counts.
  • search - search catalog artifacts, optionally constrained by category or artifact type.
  • fetch - fetch normalized metadata for APIs, Events, CDS Views, generic artifacts, or packages.
  • resources - summarize API paths, Event channels, CDS fields, or generic artifact sections.
  • spec - return full OpenAPI, AsyncAPI, EDMX, CDS JSON, or raw artifact values on explicit request.
  • package - fetch package metadata, docs, and artifacts grouped by type/subtype.

Safety Boundaries

  • This server is read-only.
  • It does not call business or sandbox API endpoints.
  • It does not retrieve or expose the user's SAP API key.
  • Full specifications are returned only by the explicit spec tool.

Publishing Safety

Before publishing or sharing a package, run:

npm run publish:check

The npm package is allowlisted to built code, this README, env.example, LICENSE, and package.json. Never publish .env, token cache files, Playwright traces, screenshots, or generated customer-specific exports.

See PUBLISHING.md for the full npmjs release checklist.

Examples

Search APIs:

{
  "q": "sales order",
  "categoryKey": "API",
  "artifactType": "API",
  "top": 5
}

Fetch API overview:

{
  "id": "salesorder",
  "kind": "api"
}

Get API resources:

{
  "id": "salesorder",
  "kind": "api"
}

Get OpenAPI JSON:

{
  "id": "salesorder",
  "kind": "api",
  "format": "json"
}
Apache-2.0, read

History

Latest

v0.1.5

Fixes 2

Notes
Bug Fixes
  • deps: refresh SDK and vulnerable dependency resolutions (#83) (e20284b)
  • shared SSO state path on Windows, real notes version, keep SSO state on session expiry (#81) (b9ffee1)
  1. v0.1.4

    Fixes 1

    Notes
    Bug Fixes
  2. v0.1.3

    Fixes 1

    Notes
    Bug Fixes
    • stabilize API Hub authentication (#13) (b584fba)
  3. v0.1.2

    Docs 1

    Notes
    Documentation
    • api-hub: note npm build provenance (c1a298a)
215downloads per week, npm
Weekly downloads for sap-api-hub-mcp26 complete calendar weeks from 2026-04-20 to 2026-10-18; the latest total is 215.20 Apr – 26 Apr: 027 Apr – 3 May: 04 May – 10 May: 011 May – 17 May: 018 May – 24 May: 025 May – 31 May: 4231 Jun – 7 Jun: 1918 Jun – 14 Jun: 2415 Jun – 21 Jun: 21122 Jun – 28 Jun: 5529 Jun – 5 Jul: 486 Jul – 12 Jul: 3113 Jul – 19 Jul: 2420 Jul – 26 Jul: 4727 Jul – 2 Aug: 573 Aug – 9 Aug: 2910 Aug – 16 Aug: 3517 Aug – 23 Aug: 2524 Aug – 30 Aug: 4131 Aug – 6 Sept: 227 Sept – 13 Sept: 2514 Sept – 20 Sept: 2721 Sept – 27 Sept: 4428 Sept – 4 Oct: 455 Oct – 11 Oct: 2212 Oct – 18 Oct: 215
Documentation
  1. abap2UI5 PlaygroundIn-browser ABAP editor beside the abap2UI5 app it buildsfrom ABAP
  2. @cap-js/mcp-serverMCP server for CAP development: model and docs searchfrom CAP
  3. mcp-sap-docsMCP server searching seventeen SAP documentation repositoriesfrom CAP
  4. sap-note-search-mcpMCP server searching and fetching SAP Notes and KBAsfrom BTP/BAIP
  5. sap-roadmap-mcpMCP server over SAP Road Map Explorerfrom BTP/BAIP
  6. ui5-lib-diffHosted app listing changes between SAPUI5 or OpenUI5 versionsfrom UI5
  7. abap-docNode.js command writing PDF documentation for an ABAP packagefrom ABAP
  8. sap-ai-docs-mcpMCP server with semantic search over SAP AI Core documentationfrom BTP/BAIP
  9. sap-btp-docs-mcpMCP server with semantic search over SAP BTP documentationfrom BTP/BAIP
  10. @sap-ux/fiori-docs-embeddingsFiori documentation indexed as embeddingsfrom CAP
  11. Clean-Core.ioHosted workspace redrawing custom ABAP as BPMN and grading itfrom ABAP
  12. abapdocs-code-scannerReads the abapDoc comments of a class or interface's public methods and type definitions and returns their text at runtime.from ABAP
  13. @ui5/webcomponents-mcp-serverMCP server answering questions on UI5 Web Componentsfrom UI5
  14. vscode-ui5-api-referenceVS Code side bar view of the SAPUI5 and OpenUI5 API referencefrom UI5

Details

Sources4
GitHub APIdiscovered here, marianfoochecked
npm registry, sap-api-hub-mcpversion, releases, installschecked
github.com/git+https://github.com/marianfoo/sap-mcp-servers.gittree, pushes, contributors, CIchecked
packages/api-hub/README.mdquoted, and what the entry declareschecked

Sources are graph entities: the same page may back several entries, and an unreachable source flags every row that rests on it.

Compatibility and provenance
runtimesnode
latestv0.1.5
first release
releases and cadence6, ~4d median
discovered viaGitHub API · marianfoo
first seen in the atlas
ecosystem and domainbtp, ai-and-agents
Contributors1

From the repository’s contributor list, .

History in the atlas2
  1. [The SAP API Policy Evidence Skill](artifact:marianfoo-sap-api-policy-skill) was entered on 2026-09-10 naming this server as what proves an API's Published-API status, and the server itself was not in the corpus. Entered as its own package, from its own README, because the monorepo publishes each server to npm independently.
  2. First seen.
For your agent
Ref
artifact:marianfoo-sap-api-hub-mcp
JSON
/artifacts/marianfoo-sap-api-hub-mcp.json
MCP
Connecting an agent