finpay-mcp-server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@finpay-mcp-server Which payment hub has the lowest success rate right now?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
finpay-mcp-server
An MCP (Model Context Protocol) server that exposes a fictional payment domain as tools, resources, and prompt templates. Connect Claude Desktop (or any MCP client) and reason over the FinPay platform — transactions, payment hubs, microservices, and system health.
Built with TypeScript + Node.js using the official @modelcontextprotocol/sdk.
What it demonstrates
Full MCP server implementation: 8 tools, 2 resources, 2 prompts
Production-quality TypeScript with strict type checking throughout
Tool schema design using zod — every parameter is typed and described
MCP governance: tool naming conventions, schema versioning, access control patterns
stdio transport for Claude Desktop; optional HTTP transport for remote clients
Related MCP server: GoldenGate MCP Server
Quickstart
Prerequisites: Node.js 22+, npm
git clone https://github.com/your-handle/finpay-mcp-server
cd finpay-mcp-server
npm install
npm run buildConnect to Claude Desktop:
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"finpay": {
"command": "node",
"args": ["/Users/ThanhNguyen/AI_WS/finpay-mcp-server/dist/index.js"]
}
}
}Restart Claude Desktop. The FinPay tools will appear in the tool panel.
Run in development mode (hot reload):
npm run devRun with HTTP transport (Streamable HTTP, stateless):
node dist/index.js --transport http --port 3100To require an API key on the HTTP transport:
MCP_API_KEY=your-secret node dist/index.js --transport http --port 3100Clients must then send Authorization: Bearer your-secret with every request.
Tools
All tools operate on in-memory fixture data — no API keys or external services required (except search_docs).
Transactions
Tool | Description |
| Look up a transaction by ID ( |
| List recent transactions. Filterable by |
Payment Hubs
Tool | Description |
| Get a hub's details: status, currencies, latency, 24h success rate |
| List all hubs (GlobalPay, SwiftRoute, MobileFirst, RegionalX) |
Services
Tool | Description |
| Describe a microservice: purpose, dependencies, dependents, health |
| List all microservices in the FinPay platform |
System
Tool | Description |
| Unified health snapshot: overall status, per-service health, per-hub metrics, active alerts |
| Full-text search via docu-rag API (requires |
Resources
Resources expose read-only data that the LLM can load directly into context.
URI | Content |
| JSON catalog of all services with full metadata |
| Markdown system architecture overview |
Prompts
Prompt templates inject structured system context to guide LLM behaviour.
architecture-review
Loads the full service catalog, hub list, and dependency graph. Asks the model to conduct a structured architecture review.
Optional argument: focus — area to concentrate on (e.g., resilience, scalability, security)
incident-triage
Loads current system health, recent FAILED/DEGRADED transactions, and hub health metrics. Guides the model through a structured incident triage.
Optional argument: transactionId — specific transaction to investigate
Configuration
Variable | Default | Description |
| — | Base URL of the docu-rag API. Enables |
|
|
|
|
| Path to the log file. Directory is created automatically on startup. |
| — | HTTP transport only. If set, all requests must include |
No API keys required for the core 7 tools. The server runs fully without any .env file.
Copy .env.example if you want to enable the optional search_docs tool:
cp .env.example .env
# Set DOCU_RAG_URL=http://localhost:8001Example Interactions
Once connected to Claude Desktop, try:
Show me all FAILED transactions in the last hour.Which payment hub has the lowest success rate right now?Explain the dependency chain for hub-adapter-service and tell me what breaks if compliance-service goes down.Run an architecture review focused on resilience.Triage the incident for transaction TXN-100000011.Governance
Tool Naming Conventions
Names are
snake_case, verb-first for actions:get_,list_,search_,explain_Tool names are a public API — never renamed once published
Breaking changes (removed/renamed params) require a new tool name (e.g.,
get_transaction_v2) and a deprecation notice before the old one is removed
Schema Versioning
This server follows semantic versioning (package.json):
Change type | Version bump |
New optional parameter or new response field | Patch (0.0.X) |
New tool, new resource, new prompt | Minor (0.X.0) |
Removed tool, removed required param, renamed tool | Major (X.0.0) only after deprecation period |
Access Control
stdio transport inherits OS user permissions. It is suitable for local, trusted use only (Claude Desktop on your own machine).
HTTP transport is intended for hosted deployments. In production, all tool calls should require Authorization: Bearer <token>. The current HTTP transport implementation accepts a --api-key flag to enable simple token validation. Scope-based access control (restricting which tools a given API key can call) is documented in docs/decisions/ADR-001-transport-strategy.md and recommended for any multi-tenant deployment.
All tools in this server are read-only over mock data. In a production server with write access to real systems, each mutating tool would require an explicit capability scope.
Development
npm run typecheck # type-check without building
npm test # run tests (vitest)
npm run lint # eslint
npm run build # compile to dist/CI runs on every push: type-check → lint → test.
Project Structure
src/
├── index.ts # Entry point — CLI arg parsing, transport selection
├── server.ts # McpServer setup, registers all tools/resources/prompts
├── logger.ts # File + stderr logger (writes to logs/app.log)
├── logging-transport.ts # Transport wrapper — access log per request/response cycle
├── tools/
│ ├── transactions.ts # get_transaction, list_transactions
│ ├── hubs.ts # get_payment_hub, list_payment_hubs
│ ├── services.ts # explain_service, list_services
│ ├── health.ts # get_system_health
│ └── docs.ts # search_docs (docu-rag proxy, requires DOCU_RAG_URL)
├── resources/
│ ├── services-catalog.ts # finpay://services/catalog
│ └── architecture-overview.ts # finpay://architecture/overview
├── prompts/
│ ├── architecture-review.ts
│ └── incident-triage.ts
└── data/
├── transactions.json # 20 fixture transactions
├── hubs.json # 4 fixture hubs
└── services.json # 7 fixture services
logs/ # Runtime log output (gitignored)
└── app.log
docs/decisions/ # Architecture Decision Records
tests/
└── tools/ # Unit tests for all tool modulesLicense
MIT
Available Tools
8 toolsexplain_serviceA
Get a detailed explanation of a FinPay microservice: its purpose, owning team, implementation language, upstream dependencies, downstream dependents, current health status, and port. Also returns a human-readable dependency graph description. Returns a NOT_FOUND error if the service name does not exist.
Inputs: name (required).
get_payment_hubA
Get a payment hub's current details and health metrics. Returns hub status, supported currencies, supported countries, transfer amount limits, average latency, and 24h success rate. Returns a NOT_FOUND error if the hub ID does not exist.
Inputs: id (required).
get_system_healthA
Get a unified health snapshot of the entire FinPay platform. Returns overall system status (HEALTHY, DEGRADED, or DOWN), per-service health, per-hub health with success rates, and any active alerts. Use this tool first when triaging incidents.
Inputs: no named parameters.
get_transactionA
Look up a single FinPay transaction by its ID. Returns the full transaction object including status, amount, currencies, exchange rate, sender/recipient names, and hub assignment. Returns a NOT_FOUND error if the ID does not exist.
Inputs: id (required).
list_payment_hubsA
List all payment hubs in the FinPay platform with their current status and health metrics. Returns all 4 hubs: GlobalPay (global), SwiftRoute (SWIFT high-value), MobileFirst (mobile money), and RegionalX (Southeast Asia).
Inputs: no named parameters.
list_servicesA
List all 7 microservices in the FinPay platform with their metadata and current health status. Services include: api-gateway, transaction-service, hub-adapter-service, compliance-service, fx-service, notification-service, and audit-service.
Inputs: no named parameters.
list_transactionsA
List recent FinPay transactions with optional filters. Returns up to 50 transactions ordered by createdAt descending. Supports filtering by status and/or hubId. Returns an empty array if no transactions match the filters.
Inputs: hubId, limit, status.
search_docsA
Full-text search over FinPay architecture documentation via the docu-rag API. Returns a synthesised answer plus the top matching document chunks. Requires the DOCU_RAG_URL environment variable to be set; returns a disabled error if it is not configured.
Inputs: query (required), topK.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 8 tools
Each tool has a clear, distinct purpose: list_* returns collections, get_* returns individual entities by ID, explain_service provides detailed service metadata, and search_docs handles documentation queries. No two tools overlap in function or target resource.
All tool names follow a consistent verb_noun pattern in snake_case. List tools use 'list_', retrieval tools use 'get_', plus 'explain_' and 'search_' which are also descriptive verbs. Naming is uniform and predictable.
Eight tools is well within the ideal range for a payment platform query/monitoring server. Each tool covers a needed operation without redundancy or bloat.
The server provides complete read-only coverage for its domain: listing and getting hubs, services, and transactions, plus overall system health and documentation search. No obvious gaps for the intended use case; write operations are likely out of scope.
Maintenance
Related MCP Connectors
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
MCP server unifying ERPs, CRMs, APIs and knowledge base for Claude, ChatGPT and Gemini.
MCP server for Modern Treasury — payment orders, transactions, counterparties and ledgers.
MCP server for building and testing AI agents with multi-model experimentation and insights.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceMCP server for AgentPay — the payment gateway for autonomous AI agents. Fund a wallet once, give your agent the key, and it discovers, provisions, and pays for tool APIs on its own. One key, every tool.112 npm1MIT
- FlicenseNot gradedqualityDmaintenanceA production-grade MCP server that exposes real-time banking data replicated via Oracle GoldenGate CDC as structured tools for AI agents, enabling read, score, and write operations on customer, account, transaction, and alert data.1-
- AlicenseAqualityDmaintenanceA local MCP server for Stripe payment operations with 52 tools across 8 domains, featuring built-in PII redaction and strict input validation for safe AI-assisted development workflows.5249 npm1MIT
- FlicenseNot gradedqualityDmaintenanceMCP server that provides tools for retrieving transaction context and recording AI decisions or creating human reviews for payment risk exceptions. Enables LLM agents to handle exception transactions in a hybrid payment-decisioning workflow.-