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
Visit Server

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.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured