Metadata-Version: 2.4
Name: stripe-agents-mcp
Version: 0.1.0
Summary: MCP server exposing Stripe APIs as structured tools for Claude and other agents
License: MIT License
        
        Copyright (c) 2026 kinance
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
License-File: LICENSE
Requires-Python: >=3.12
Requires-Dist: mcp<2,>=1.0.0
Requires-Dist: stripe<16,>=7.0.0
Provides-Extra: dev
Requires-Dist: anyio>=4.0; extra == 'dev'
Requires-Dist: pytest-asyncio>=0.24; extra == 'dev'
Requires-Dist: pytest>=8.0; extra == 'dev'
Description-Content-Type: text/markdown

# stripe-agents-mcp

MCP server exposing 25 Stripe API tools for Claude and other MCP-compatible agents.

## Tools

| Category | Tools |
|---|---|
| Account | `get_stripe_account_info`, `retrieve_balance` |
| Customers | `create_customer`, `list_customers` |
| Products & Prices | `create_product`, `list_products`, `create_price`, `list_prices` |
| Payment Links | `create_payment_link` |
| Payment Intents | `list_payment_intents` |
| Invoices | `create_invoice`, `create_invoice_item`, `finalize_invoice`, `list_invoices` |
| Subscriptions | `cancel_subscription`, `list_subscriptions`, `update_subscription` |
| Refunds | `create_refund` |
| Coupons | `create_coupon`, `list_coupons` |
| Disputes | `list_disputes`, `update_dispute` |
| Utilities | `search_stripe_resources`, `fetch_stripe_resources`, `search_stripe_documentation` |

## Install via Claude Code

```
/plugin install stripe-agents-mcp@kinance
```

Then set your Stripe secret key in the environment where Claude Code runs:

```bash
export STRIPE_SECRET_KEY=sk_live_...
```

The plugin ships a `.mcp.json` that wires up the stdio server automatically — no manual config needed after install.

## Manual setup (Claude Desktop / other MCP clients)

```bash
pip install git+https://github.com/kinance/stripe-agents-mcp.git
```

Add to your MCP client config:

```json
{
  "mcpServers": {
    "stripe": {
      "command": "python",
      "args": ["-m", "stripe_mcp"],
      "env": {
        "STRIPE_SECRET_KEY": "sk_live_..."
      }
    }
  }
}
```

## Running directly

```bash
python -m stripe_mcp
```

## Development

```bash
pip install -e ".[dev]"
pytest tests/ --cov=stripe_mcp
```

## Security

- Pass a **restricted** Stripe key (`rk_*`) scoped to only the resources your agent needs.
- The server never logs or echoes the API key.
- All inputs are validated before reaching the Stripe SDK.
