Xsuaa Auth
MCP server by arc-mcp Verified · npm:@arc-mcp
Xsuaa Auth adds SAP XSUAA OAuth and BTP principal propagation to Model Context Protocol servers built on Express and the MCP SDK. It is for developers building MCP servers on SAP BTP.
Install Xsuaa Auth
Built from the published package, never by AI.
claude mcp add xsuaa-auth -- npx -y @arc-mcp/xsuaa-authRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"xsuaa-auth": {
"args": [
"-y",
"@arc-mcp/xsuaa-auth"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"xsuaa-auth": {
"args": [
"-y",
"@arc-mcp/xsuaa-auth"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"xsuaa-auth": {
"args": [
"-y",
"@arc-mcp/xsuaa-auth"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add xsuaa-auth -- npx -y @arc-mcp/xsuaa-auth{
"mcpServers": {
"xsuaa-auth": {
"args": [
"-y",
"@arc-mcp/xsuaa-auth"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add xsuaa-auth npx -y @arc-mcp/xsuaa-authGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the xsuaa-auth block.
About
Xsuaa Auth is an npm package that adds SAP XSUAA OAuth authentication to Model Context Protocol servers built on Express and the MCP SDK. It provides an XSUAA OAuth proxy provider, a stateless Dynamic Client Registration store, and a chained bearer verifier that checks XSUAA, OIDC and API-key credentials in that order, each optional. A facade function called setupHttpAuth wires these pieces together for the common flow.
A separate ./btp entrypoint adds per-user principal propagation through the BTP Destination Service and Cloud Connector. Developers who need full control can use the building blocks directly instead of the facade. It suits MCP servers on SAP BTP, since the facade reads the bound XSUAA service and public route from the Cloud Foundry environment.
Written from the project's README and checked against it.
What you need
- Node.js 22 or later
- Express 5 (^5.0.1)
- @modelcontextprotocol/sdk 1.18.2 or later, below 2
- An SAP XSUAA service binding on Cloud Foundry
- jose 5 to 6, optional, for the OIDC verifier
Try asking
- Add XSUAA OAuth login to my Express MCP server.
- Set up API key and OIDC bearer auth for my MCP route.
- Enable per-user principal propagation through the BTP Destination Service.
Good to know
- ESM-only package that requires Node.js 22 or later.
- The tested TypeScript SDK clients do not retry OAuth on 403 forbidden responses.
- Verified user attributes are not enabled by setupHttpAuth and need the building blocks.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work
What you can do with it
- Adding SAP XSUAA login to an MCP server
- Mixing XSUAA, OIDC and API-key bearer auth
- Per-user principal propagation on SAP BTP
Alternatives to Xsuaa Auth
All alternatives →Agentmesh MCP Proxy is a security proxy for MCP servers, described by its publisher as a firewall for the Model Context Protocol. It is aimed at teams that run AI agents which call tools and other agents.
Hardens client-side artifacts such as binaries, Electron apps, JS bundles, Python and WebAssembly against AI reverse-engineering agents. Built for developers who ship proprietary logic to user-controlled devices.
Bla Agents is an MCP server and CLI that adds seeded, format-specific decoys to shipped binaries, JavaScript, WebAssembly and other artifacts. It is for developers who ship proprietary logic to user-controlled devices and want to make AI reverse-engineering slower.
A shared OAuth server for the MCP route of an app, built on better-auth, with passkey sign-in for the owner
Agent Governance Toolkit adds policy enforcement, identity, sandboxing and audit logging to autonomous AI agents. It is aimed at teams shipping agents to production. The source does not confirm the Claude Desktop MCP server named in the listing.
Convex MCP Gateway is a Convex component that exposes selected Convex functions as MCP tools. It checks each call with your own authorize callback and writes an audit log. It is for developers who run Convex apps and want AI assistants to call parts of them.
Compare with Agentmesh MCP Proxy, Bla or Bla Agents
Xsuaa Auth: common questions
Does this package need an SAP BTP account?
The facade can read the bound XSUAA service from VCAP_SERVICES on Cloud Foundry using loadXsuaaCredentials(). The source describes the OIDC and API-key modes as usable without an XSUAA block.
Which authentication methods does it support?
It chains XSUAA, OIDC and API-key verifiers, and each one is optional. A bare string API key grants no scopes, so it fails any required scopes check.
Does it work with Copilot Studio or claude.ai?
The facade does not set a restrictive Cross-Origin-Opener-Policy, because the source says popup-based OAuth from Copilot Studio and claude.ai breaks under same-origin.
How do I install Xsuaa Auth?
In Claude Code run claude mcp add xsuaa-auth -- npx -y @arc-mcp/xsuaa-auth. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is Xsuaa Auth the official server?
Xsuaa Auth is published by npm:@arc-mcp from its verified domain in the official MCP Registry.
Is Xsuaa Auth free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is Xsuaa Auth safe to use?
It scores 86 of 100. Grades: maintenance A, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to Xsuaa Auth?
Similar MCP servers: Agentmesh MCP Proxy, Bla, Bla Agents, MCP Auth.
Does Xsuaa Auth work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
