TropiPay MCP Server

TropiPay MCP Server

An MCP server that provides a standardized interface for AI assistants to interact with TropiPay's payment platform, enabling account management, transactions, beneficiary management, and payment link creation through tools and resources.

Category
访问服务器

README

TropiPay MCP Server

TypeScript Node.js License: MIT

A Model Context Protocol (MCP) server for interacting with TropiPay's payment platform. This server provides a standardized interface for AI assistants in various development environments to perform TropiPay operations through tools and resources.

✨ Features

  • Authentication: Handles OAuth 2.0 client credentials flow with TropiPay
  • Modular Architecture: Clean separation of concerns with TypeScript
  • TropiPay API Integration: Comprehensive wrapper around TropiPay's functionality
  • Tool-Based Interface: Easy integration with AI assistants
  • Environment Support: Configure for sandbox or production environments
  • Editor Compatibility: Works with VS Code, Cursor, Windsurf, and other MCP-compatible editors

🛠️ Available Tools

Account Management

  • get_default_account_balance: Retrieve current default account balance
  • get_profile_data: Get user profile information
  • get_accounts_list: List all TropiPay accounts

Transactions

  • get_movement_list: View transaction history with pagination
  • list_deposit_accounts: List deposit accounts/beneficiaries (bank accounts, crypto wallets, etc.)
  • list_paymentcards: Get list of payment cards (payment links) created by the user

Beneficiary Management

  • create_internal_beneficiary: Create a new internal TropiPay beneficiary
    • Required Fields: alias, searchValue (email)
  • create_external_beneficiary: Create a new external bank account beneficiary
    • Required Fields: firstName, lastName, accountNumber, currency, countryDestinationId/countryISO
  • create_crypto_beneficiary: Create a new crypto wallet beneficiary
    • Required Fields: firstName, lastName, accountNumber (wallet address), currency, network

Payment Links

  • create_paymentcard: Create payment links (called payment cards in TropiPay)
    • Required Fields: amount, currency, concept, description
    • Optional Fields: reference, favorite, singleUse, expirationDays, reasonId, lang, urlSuccess, urlFailed, urlNotification, serviceDate, accountId

System

  • test_connection: Verify API connectivity and authentication

📚 Available Resources

The TropiPay MCP Server provides the following reference resources:

  • tropipay://config: Current TropiPay API configuration and environment settings
  • tropipay://status: TropiPay API connection status and health check
  • tropipay://movement-types: Complete reference of TropiPay movementType IDs and their meanings
  • tropipay://movement-states: Complete reference of TropiPay movement state codes and their meanings
  • tropipay://account-states: Complete reference of TropiPay account state codes and their meanings

🚀 Getting Started

Prerequisites

  • Node.js 20+
  • npm or yarn
  • TropiPay API credentials (Client ID and Client Secret)

Installation

  1. Clone the repository:

    git clone https://github.com/yosle/tropipay-mcp-server.git
    cd tropipay-mcp-server
    npm install
    
  2. Install dependencies:

    npm install
    

MCP Client Configuration

This MCP server can be used with any MCP-compatible client such as Claude Desktop, Windsurf, Cline, or other AI assistants that support the Model Context Protocol.

Configuration File Locations

Locate your client's MCP configuration file:

  • Claude Desktop:

    • Windows: %APPDATA%\Claude\claude_desktop_config.json
    • MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
    • Linux: ~/.config/Claude/claude_desktop_config.json
  • Windsurf:

    • Windows: %USERPROFILE%\.codeium\windsurf\mcp_config.json
    • MacOS: ~/.codeium/windsurf/mcp_config.json
    • Linux: ~/.codeium/windsurf/mcp_config.json
  • Cline: Refer to the Cline documentation for configuration details

Installation Methods

Option 1: Using npx (Recommended)

You can run the server directly with npx:

{
  "mcpServers": {
    "tropipay": {
      "command": "npx",
      "args": ["-y", "tropipay-mcp-server"],
      "env": {
        "TROPIPAY_CLIENT_ID": "your_client_id",
        "TROPIPAY_CLIENT_SECRET": "your_client_secret",
        "TROPIPAY_BASE_URL": "https://sandbox.tropipay.me"
      }
    }
  }
}
Option 2: Local Development/Installation

For local development or if you've cloned the repository:

{
  "mcpServers": {
    "Tropipay MCP Server": {
      "command": "node",
      "args": [
        "D:\\proyectos\\tropipay-mcp-server\\tropipay-mcp-server\\build\\index.js"
      ],
      "env": {
        "TROPIPAY_CLIENT_ID": "your_client_id",
        "TROPIPAY_CLIENT_SECRET": "your_client_secret",
        "TROPIPAY_BASE_URL": "https://sandbox.tropipay.me"
      }
    }
  }
}

Environment Variables

Configure the following environment variables in your MCP client configuration:

Variable Required Description Default
TROPIPAY_CLIENT_ID ✅ Yes Your TropiPay API client ID -
TROPIPAY_CLIENT_SECRET ✅ Yes Your TropiPay API client secret -
TROPIPAY_ENVIRONMENT ❌ No Environment: sandbox or production sandbox
TROPIPAY_BASE_URL ❌ No Custom API base URL (overrides environment) Based on environment

Base URL Options

  • Sandbox: https://sandbox.tropipay.me (default)
  • Production: https://www.tropipay.com
  • Local Development: http://localhost:3001 (or your custom endpoint)

Important Notes:

  • For Windows paths, use double backslashes: "D:\\folder\\tropipay-mcp-server\\build\\index.js"
  • For Linux/Mac paths, use forward slashes: "/home/user/tropipay-mcp-server/build/index.js"
  • The -y flag in npx automatically confirms package installation
  • Make sure to run npm run build before using the local installation method

🏗️ Project Structure

src/
├── client/         # TropiPay client initialization and management
├── config/         # Configuration management
├── resources/      # MCP resource handlers
├── tools/          # Tool definitions and handlers
│   ├── definitions.ts
│   └── handlers.ts
├── types/          # TypeScript type definitions
└── index.ts        # Main server entry point

🔍 Usage Examples

Get a list of my beneficiaries 

Getting Account Balance

Get the balance in all my Tropipay accounts 

📝 License

This project is licensed under the MIT License - see the LICENSE file for details.

🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

📧 Contact

For questions or support, please open an issue on GitHub.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选