Content
# StableOps MCP Server
[](https://www.npmjs.com/package/@stableops/mcp-server) [](https://www.npmjs.com/package/@stableops/mcp-server) [](./LICENSE) [](https://www.typescriptlang.org) [](https://nodejs.org)
[中文文档](./README.zh-CN.md)
A stdio [Model Context Protocol (MCP)](https://modelcontextprotocol.io) server that gives AI agents (Claude Desktop, Cursor, VS Code, etc.) policy-scoped access to StableOps payment, address, webhook, checkout, agent-audit, and merchant-subscription operations. Every tool call is gated by the workspace action policy.
## Installation
```bash
npm install @stableops/mcp-server
```
Requires Node.js 18 or newer.
## Quick Start
Set the two required environment variables and start the stdio server:
```bash
export STABLEOPS_API_KEY=sk_...
export STABLEOPS_AGENT_SESSION_ID=session_123
npx stableops-mcp
```
`STABLEOPS_API_KEY` and `STABLEOPS_AGENT_SESSION_ID` are the only required settings. The environment (sandbox / live) is determined by the API key itself.
## Documentation
The full tool reference, MCP host setup (Claude Desktop, Claude Code, Codex CLI, and more), policy configuration, and programmatic usage live in the docs:
**Read the full documentation → https://stableops.dev/en/docs/agents/mcp-server**
## License
Apache-2.0