Metadata-Version: 2.4
Name: pinelabs-mcp-server
Version: 0.1.2
Summary: A Model Context Protocol (MCP) server for Pine Labs payment APIs
Author: Pine Labs
License: MIT
Project-URL: Homepage, https://github.com/pinelabs/pinelabs-mcp-server
Project-URL: Repository, https://github.com/pinelabs/pinelabs-mcp-server
Project-URL: Issues, https://github.com/pinelabs/pinelabs-mcp-server/issues
Keywords: mcp,pinelabs,payments,model-context-protocol
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Software Development :: Libraries
Requires-Python: >=3.10
Description-Content-Type: text/markdown
Requires-Dist: fastmcp>=3.2.0
Requires-Dist: fastapi==0.135.1
Requires-Dist: httpx==0.28.1
Requires-Dist: pydantic>=2.12.0
Requires-Dist: uvicorn==0.41.0
Requires-Dist: pyyaml>=6.0
Requires-Dist: python-dotenv>=1.0
Requires-Dist: prometheus-client>=0.24.0
Requires-Dist: opentelemetry-api>=1.40.0
Requires-Dist: opentelemetry-sdk>=1.40.0
Requires-Dist: opentelemetry-exporter-otlp-proto-grpc>=1.40.0
Requires-Dist: redis>=5.0
Requires-Dist: dateparser>=1.2.0
Provides-Extra: dev
Requires-Dist: pytest; extra == "dev"
Requires-Dist: pytest-asyncio; extra == "dev"
Requires-Dist: pytest-cov; extra == "dev"
Requires-Dist: respx; extra == "dev"

# Pine Labs MCP Server

mcp-name: io.github.plural-pinelabs/pinelabs-online-mcp

A [Model Context Protocol](https://modelcontextprotocol.io) (MCP) server that exposes
Pine Labs Online payment APIs (payment links, checkout orders, card payments, UPI
intent/QR, OTP, order status, success-rate analytics, etc.) as tools consumable by
MCP-compatible LLM clients.

## Installation

```bash
pip install pinelabs-mcp-server
```

## Usage

After installation the `pinelabs-mcp-server` entry point is available:

```bash
pinelabs-mcp-server
```

Configure credentials and environment via environment variables (see `config.py`
and the repository documentation for the full list). At minimum you will need:

- `PINELABS_CLIENT_ID`
- `PINELABS_CLIENT_SECRET`
- `PINELABS_BASE_URL`

## MCP client configuration

Example `mcp.json` snippet:

```json
{
  "mcpServers": {
    "pinelabs": {
      "command": "pinelabs-mcp-server"
    }
  }
}
```

## Features

- Payment Links (create, fetch, cancel)
- Checkout Orders
- Card Payments & Card Details
- UPI Intent / QR
- OTP flows
- Order status & Success-rate analytics
- Built-in PII filtering, prompt-guard, circuit breaker, metrics and health endpoints

## Links

- Homepage: https://github.com/pinelabs/pinelabs-mcp-server
- Issues:   https://github.com/pinelabs/pinelabs-mcp-server/issues

## License

MIT

