Chargily MCP
Chargily MCP
A public Model Context Protocol (MCP) server for the Chargily Pay V2 API, hosted on Cloudflare Workers. Anyone can connect with their own Chargily API key — no shared secrets, no server-side configuration needed.
MCP Endpoint
https://mcp.ta9in.com/chargily-mcp/mcpQuick Start
Get your Chargily API key from pay.chargily.com → Developer → API Keys
Set it in your project's
.envfile:CHARGILY_API_KEY=test_sk_your_key_hereAdd to your MCP client config (e.g.
claude_desktop_config.json):{ "mcpServers": { "chargily": { "command": "npx", "args": [ "mcp-remote", "https://mcp.ta9in.com/chargily-mcp/mcp", "--header", "Authorization: Bearer ${CHARGILY_API_KEY}" ] } } }Restart your MCP client. The server auto-detects test vs live mode from your key prefix (
test_sk_/live_sk_).
Your key is never stored on the server — it's sent per-request and kept only in your MCP session.
Tools
Tool | Description |
| Get API docs for a specific topic |
| List all available doc topics |
| Retrieve merchant wallet balance |
| Create a new customer |
| Get customer by ID |
| Update customer details |
| Delete a customer |
| List all customers |
| Create a product |
| Get product by ID |
| Update product details |
| Delete a product |
| List all products |
| Create a price for a product |
| Get price by ID |
| Update price metadata |
| Delete a price |
| List all prices |
| Create a payment session (returns checkout URL) |
| Get checkout by ID |
| List all checkouts |
| Expire a pending checkout |
| Create a reusable payment link |
| Get payment link by ID |
| Update a payment link |
| Delete a payment link |
| List all payment links |
| List checkouts from a payment link |
How Authentication Works
Your Chargily API key is passed as an HTTP header with each request:
Authorization: Bearer <your_key>or alternatively:
X-Chargily-Api-Key: <your_key>The server reads it from the header, uses it for that session's API calls, and automatically selects test mode (test_sk_...) or live mode (live_sk_...) based on the key prefix.
Self-Hosting
git clone https://github.com/ta9in-oss/chargily-mcp
cd chargily-mcp
npm install
# Local dev
npm run dev
# → http://localhost:8788/chargily-mcp/mcp
# Deploy to your own Cloudflare account
npm run deployNo secrets to configure — the Worker has no server-side API keys. Each user brings their own.
API Reference
Full Chargily Pay API docs: https://dev.chargily.com/pay-v2/introduction
License
MIT
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Soheybfa/chargily-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server