Setu UPI Deeplinks MCP Server
A Model Context Protocol (MCP) server that helps Claude generate and manage UPI payment deeplinks using Setu's payment infrastructure.
Components
Tools
The server implements the following payment management tools:
-
create-payment-link: Create a new UPI payment link
- Required inputs:
amount: Amount to be paid in paisebill_id: Unique identifier for the paymentpayee_name: Name of the payee
- Optional input:
note: Transaction note
- Returns payment link details including UPI ID and short URL
- Required inputs:
-
expire-payment: Expire an existing payment link
- Required input:
bill_id: The bill ID of the payment to expire
- Required input:
-
initiate-refund: Initiate a refund for a payment
- Required inputs:
bill_id: The bill ID of the paymentrefund_type: Type of refund ("FULL" or "PARTIAL")
- Required inputs:
-
check-payment-status: Check the status of a payment
- Required input:
bill_id: The bill ID of the payment
- Returns current payment status
- Required input:
-
mock-payment: Simulate a payment (sandbox mode only)
- Required inputs:
bill_id: The bill ID of the paymentupi_id: The UPI ID for the payeeamount: Amount to be paid in Rupees
- Required inputs:
Configuration
Environment Variables
The server requires the following environment variables:
UPI_DEEPLINKS_SCHEME_ID=your-scheme-id
UPI_DEEPLINKS_SECRET=your-secret
UPI_DEEPLINKS_PRODUCT_INSTANCE_ID=your-product-instance-id
SETU_AUTH_TYPE=OAUTH # Optional, defaults to OAUTH
SETU_MODE=SANDBOX # Optional, defaults to SANDBOX
Claude Desktop Configuration
MacOS: ~/Library/Application\ Support/Claude/claude_desktop_config.json
Windows: %APPDATA%/Claude/claude_desktop_config.json
{
"mcpServers": {
"setu_mcp_upi_deeplinks": {
"command": "uvx",
"args": [
"setu_mcp_upi_deeplinks"
],
"env": {
"UPI_DEEPLINKS_SCHEME_ID": "your-scheme-id",
"UPI_DEEPLINKS_SECRET": "your-secret",
"UPI_DEEPLINKS_PRODUCT_INSTANCE_ID": "your-product-instance-id"
}
}
}
}
Development
Building and Publishing
- Sync dependencies and update lockfile:
uv sync
- Build package distributions:
uv build
- Publish to PyPI:
uv publish
Note: Set PyPI credentials via environment variables or command flags:
- Token:
--tokenorUV_PUBLISH_TOKEN - Or username/password:
--username/UV_PUBLISH_USERNAMEand--password/UV_PUBLISH_PASSWORD
Debugging
Since MCP servers run over stdio, debugging can be challenging. For the best debugging experience, we strongly recommend using the MCP Inspector.
Launch the MCP Inspector via npm:
npx @modelcontextprotocol/inspector uv --directory /<path>/setu-mcps/upi-deeplinks run setu_mcp_upi_deeplinks
Upon launching, the Inspector will display a URL that you can access in your browser to begin debugging.
Metadata
Release files for setu_mcp_upi_deeplinks 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| setu_mcp_upi_deeplinks-0.1.0.tar.gz | 20.0 kB | Without provenance | Details for setu_mcp_upi_deeplinks-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| setu_mcp_upi_deeplinks-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for setu_mcp_upi_deeplinks-0.1.0-py3-none-any.whl |
Total release size: 25.7 kB
Release files / setu_mcp_upi_deeplinks-0.1.0.tar.gz
| Download URL | setu_mcp_upi_deeplinks-0.1.0.tar.gz |
|---|---|
| Size | 20.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a39ed39d8211b24018687c48b756fc0939ef82fe75b348b9031ad5af8a299b43
|
|
BLAKE2b-256 checksum How to use checksums |
8fbcb45d861c6647d0c0c63f5b6bed7a8279dfbf68552606bc44d75293bb5bca
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.5.21
|
Release files / setu_mcp_upi_deeplinks-0.1.0-py3-none-any.whl
| Download URL | setu_mcp_upi_deeplinks-0.1.0-py3-none-any.whl |
|---|---|
| Size | 5.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6f9ede85778d2aa1d95d50549c021aad8343552f07d7b4bdb54415973b7e6417
|
|
BLAKE2b-256 checksum How to use checksums |
09cc3dc4f448d3163fa8c02e217b193a1b0fd0f07e47e2b2d45d6f30e0663f58
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.5.21
|
Security for setu_mcp_upi_deeplinks 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.