MONEI
European payment platform MCP server. Generate payment links, look up transactions, view revenue analytics, and manage subscriptions through AI assistants. First European Payment Institution with native MCP support. Banco de EspaΓ±a #6911. OAuth 2.0 + PKCE. Live at mcp.monei.com.
MONEI MCP Server
Connect your MONEI payment account to AI assistants like Claude and ChatGPT using the Model Context Protocol.
Generate payment links, check transaction status, and browse your payment history β all through natural language conversation.
Features
- π Payment Links β Create and share payment links with customers via AI
- π Transaction Lookup β Get payment details and status by ID
- π Payment History β Search and filter your transaction history
- π Subscriptions β View subscription details and status
- π’ Account Info β Access your merchant account configuration
- π OAuth 2.0 β Secure merchant authentication with scoped permissions
- π‘οΈ Guardrails β Restricted operations are hard-blocked, not just hidden
Security by Design
This server enforces strict guardrails on what operations AI assistants can perform. The following operations are explicitly blocked at the server level:
| Blocked Operation | Reason |
|---|---|
| Refund payments | Financial risk β use MONEI Dashboard |
| Charge cards/Bizum | Requires PCI context and cardholder consent flows |
| Card payouts | Funds disbursement requires compliance controls |
| Bizum payouts | Outbound money movement requires compliance controls |
| Cancel subscriptions | Destructive action β use Dashboard |
| Modify account settings | Security-sensitive β use Dashboard |
Even if a tool call is crafted manually, restricted endpoints will reject it with a clear explanation and redirect to the Dashboard.
Quick Start
Prerequisites
- Node.js 18+
- A MONEI account with API credentials
Installation
git clone https://github.com/MONEI/MONEI-MCP-Server.git
cd MONEI-MCP-Server
npm install
Configuration
cp .env.example .env
Edit .env with your MONEI credentials:
MONEI_CLIENT_ID=your_client_id
MONEI_CLIENT_SECRET=your_client_secret
MONEI_API_KEY=your_api_key # For development/testing
Run
# Development (with hot reload)
npm run dev
# Production
npm run build
npm start
The server starts at http://localhost:3000 with:
- Streamable HTTP (recommended):
/mcpβ Connect AI assistants here - Legacy SSE:
/sseβ Backward compatibility - Health check:
/healthβ Server status - OAuth:
/oauth/authorizeβ Merchant authorization flow
Connecting to Claude
Claude.ai (Connectors Directory)
Once listed in the Anthropic Connectors Directory, merchants can connect with one click from Customize β Connectors in Claude.ai.
For custom connector setup:
- Go to Customize β Connectors β Add
- Add your server URL:
https://your-domain.com/mcp - Complete the OAuth authorization flow
Claude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"monei": {
"url": "https://your-domain.com/mcp"
}
}
}
Claude Code
claude mcp add monei --transport http https://your-domain.com/mcp
Available Tools
generate_payment_link
Create a shareable payment URL.
"Generate a β¬25 payment link for order #1234 β customer is [email protected]"
get_payment
Retrieve payment details by ID.
"What's the status of payment abc123?"
list_payments
Search and filter transaction history.
"Show me all successful payments from last week"
get_subscription
View subscription details.
"Get the details of subscription sub_xyz"
list_subscriptions
Browse subscriptions.
"List all active subscriptions"
get_account_info
View merchant account details.
"What payment methods do I have enabled?"
Architecture
src/
βββ index.ts # Entry point β Streamable HTTP + SSE + OAuth routes
βββ server.ts # MCP server setup + tool registration
βββ auth/
β βββ oauth.ts # OAuth 2.0 + PKCE + scope validation
β βββ pkce.ts # RFC 7636 PKCE implementation
β βββ session.ts # Single-use OAuth state manager (CSRF protection)
βββ api/
β βββ monei-client.ts # MONEI REST API client (allowed ops only)
βββ tools/
β βββ index.ts # Tool registry + routing + restriction enforcement
β βββ payments.ts # Payment tools with safety annotations
β βββ subscriptions.ts # Subscription tools with safety annotations
β βββ account.ts # Account info tool with safety annotations
βββ middleware/
β βββ security.ts # CORS, HTTPS, session validation, input guard
β βββ rate-limiter.ts # Per-account sliding window rate limiter
β βββ audit-logger.ts # Structured JSON audit logging
βββ types/
βββ index.ts # Shared types + restricted operations registry
tests/
βββ auth/ # PKCE, session, scope validation tests
βββ middleware/ # Rate limiter, audit logger, security tests
βββ tools/ # Restriction enforcement, routing, validation tests
Roadmap
- Streamable HTTP transport (Anthropic directory requirement)
- Tool safety annotations (readOnlyHint / destructiveHint)
- PKCE (RFC 7636) + CSRF state validation
- Security hardening (Helmet, CORS, rate limiting, audit logging)
- Comprehensive test suite
- Production OAuth 2.0 integration with MONEI auth service
- Persistent token storage (Redis/PostgreSQL)
- Anthropic Connectors Directory submission
- Webhook notifications for payment status changes
- Docker container + deploy-to-cloud templates
- NPM package publishing (
npx @monei/mcp-server) - Claude Desktop Extension (.mcpb bundle)
API Documentation
License
MIT Β© MONEI
Related Servers
Amazon Ads MCP Server
Connect Amazon Ads to Claude or ChatGPT via Two Minute Reports MCP and get accurate insights on sponsored products, ACOS, keywords, and budget.
Gaggimate MCP
Allows an LLM agent to control your Gaggimate espresso machine
DSers MCP
Automate AliExpress/Alibaba dropshipping product import to Shopify or Wix via DSers. Bulk import, pricing rules, multi-store push.
Map Traveler
A virtual travel environment for an avatar on Google Maps, utilizing various Google Maps and optional AI image generation APIs.
MCP Seat Reservation Server
A server for managing a comprehensive seat reservation system.
Payman API
Integrates with Payman AI's payment APIs to manage payees, payments, and balances using natural language.
Chessmata
3D graphical chess game for humans and agents
kabu-mcp
Japanese & Global stock market data for AI assistants. Real-time quotes, technical analysis (RSI/MACD/BB), market screening. The only MCP with Japanese stock support.
Bitscale AI
B2B GTM Orchestration and Data Enrichment
RunDida
8 running tools for AI agents β 86 calculators, marathon data, pace/HR/VO2max calculations.