PEX MCP Server
The PEX MCP Server provides read-only access to the PEX Card business account platform through 72 tools, enabling AI assistants to retrieve financial, card, and account data.
Business Management: Retrieve business profile, balance, admin details, tags, bank account info, linked businesses, billing information, one-time transfer details, and settings
Card Information: Look up card profiles, spending rules, advanced spending rules, load limit balances, scheduled funding rules, and card orders
Transactions: Fetch paginated business and cardholder transactions with filtering by date, amount, and category; retrieve purchases, declines, attachments, and tags
Account Details: Get cardholder account details, balances, remaining spending limits, and network transactions for both individual cardholders and the entire business
Spending Rulesets: List standard and advanced spending rulesets, see which cards are assigned to each, and look up Merchant Category Code (MCC) categories
Bills & Payments: Search bills, retrieve bill payment details, payment requests, business payments, and payment transfers
Vendors: List vendors, retrieve individual vendor details, and look up vendor card orders
Credit & Invoices: View credit line information, invoices, invoice allocations, and invoice payments
Groups: List cardholder groups and retrieve cardholders belonging to specific groups
Tokens & Provisioning: View current and all authentication tokens, check token provisioning modes, and retrieve issued tokens for cardholders
Callbacks: List available callback subscription types, view all subscriptions, and retrieve individual subscription details
Partner: Retrieve partner details associated with the current business
Key features include input validation with clear error messages, automatic retry logic with exponential backoff for 502/503/504 errors, a 30-second request timeout, and structured JSON logging for debugging.
Provides integration with GitHub Copilot in VS Code, enabling AI assistants to access PEX business account data, cards, transactions, and financial management tools through the PEX External API.
Click on "Install 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., "@PEX MCP ServerWhat is my current business account balance?"
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.
PEX MCP Server
A Model Context Protocol (MCP) server that provides access to the PEX Card External API. Use this server to let AI assistants like Claude interact with your PEX business account, cards, transactions, and more.
Getting Your PEX API Token
To use the PEX MCP Server, you need a PEX API token. Follow these steps to generate one:
Log in to the PEX Dashboard using your credentials.
Navigate to Profile > Authorized Apps (or go directly to
/account/authorized-apps).Find the PEX MCP Server application and click on it.
Click Generate Token and copy the token value.
Note: Keep your API token secure. Do not commit it to version control or share it publicly.
Configuration
Set the following environment variables:
Variable | Required | Description |
| Yes | PEX API base URL (e.g., |
| Yes | Your PEX API token (see Getting Your PEX API Token) |
Usage with Claude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"pex": {
"command": "npx",
"args": ["-y", "@pexcard_engineering/mcp"],
"env": {
"PEX_API_URL": "https://coreapi.pexcard.com/v4",
"PEX_API_TOKEN": "your-api-token-here"
}
}
}
}Config file locations
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
Usage with Claude Code (CLI)
Add the MCP server using the Claude Code CLI:
claude mcp add pex -e PEX_API_URL=https://coreapi.pexcard.com/v4 -e PEX_API_TOKEN=your-api-token-here -- npx -y @pexcard_engineering/mcpOr add it manually to your .claude/settings.json:
{
"mcpServers": {
"pex": {
"command": "npx",
"args": ["-y", "@pexcard_engineering/mcp"],
"env": {
"PEX_API_URL": "https://coreapi.pexcard.com/v4",
"PEX_API_TOKEN": "your-api-token-here"
}
}
}
}Usage with GitHub Copilot
VS Code
Add the following to your VS Code settings (.vscode/settings.json or user settings):
{
"github.copilot.chat.mcpServers": {
"pex": {
"command": "npx",
"args": ["-y", "@pexcard_engineering/mcp"],
"env": {
"PEX_API_URL": "https://coreapi.pexcard.com/v4",
"PEX_API_TOKEN": "your-api-token-here"
}
}
}
}Alternatively, create an .mcp.json file in your project root:
{
"servers": {
"pex": {
"command": "npx",
"args": ["-y", "@pexcard_engineering/mcp"],
"env": {
"PEX_API_URL": "https://coreapi.pexcard.com/v4",
"PEX_API_TOKEN": "your-api-token-here"
}
}
}
}Tip: When using
.mcp.json, add it to your.gitignoreif it contains your actual token, or use environment variable references to keep secrets out of source control.
Available Tools (72 total)
Business (12 tools)
Tool | Description |
| Get business profile details including name, address, phone, and status |
| Get business account balance |
| Get list of all business administrators |
| Get a specific business administrator by ID |
| Get all business tags |
| Get a specific business tag by ID |
| Get linked businesses |
| Get business bank account details |
| Get business one-time transfer details |
| Get the current user's business profile |
| Get business billing information for a specific month |
| Get business settings |
Cards (7 tools)
Tool | Description |
| Get card profile/details by card account ID |
| Get spending rules for a specific card |
| Get advanced spending rules for a specific card |
| Get remaining card load limit for a specific card |
| Get scheduled funding rules for a specific card |
| Get a specific card order by ID |
| Get card orders within an optional date range |
Transactions (10 tools)
Tool | Description |
| Get paginated business transactions with filters |
| Get a specific business transaction by ID |
| Get paginated cardholder transactions |
| Get a specific cardholder transaction by ID |
| Get paginated cardholder purchases |
| Get a specific cardholder purchase by ID |
| Get paginated cardholder declines |
| Get all attachments for a transaction |
| Get a specific attachment for a transaction |
| Get tags for a specific transaction |
Account Details (10 tools)
Tool | Description |
| Get cardholder account details by ID |
| Get advanced cardholder account details by ID |
| Get all cardholder account details for the business |
| Get account balance for a specific cardholder |
| Get remaining spending limits for a cardholder |
| Get network transactions for the business |
| Get network transactions for a specific cardholder |
| Get transaction details for a specific transaction |
| Get transaction details for the business |
| Get all cardholder transactions within a date range |
Spending Rulesets (7 tools)
Tool | Description |
| Get all spending rulesets for the business |
| Get a specific spending ruleset by ID |
| Get cards assigned to a spending ruleset |
| Get all advanced spending rulesets |
| Get a specific advanced spending ruleset by ID |
| Get cards assigned to an advanced spending ruleset |
| Get Merchant Category Code (MCC) categories |
Bills (4 tools)
Tool | Description |
| Get bill payment details by bill ID |
| Get payments for a specific bill |
| Get a specific bill payment request by ID |
| Search bills with optional filters |
Vendors (3 tools)
Tool | Description |
| Get paginated list of vendors with filters |
| Get a specific vendor by ID |
| Get vendor card order details by order ID |
Payments (3 tools)
Tool | Description |
| Get paginated list of business payments |
| Get a specific payment transfer by ID |
| Get a specific payment request by ID |
Credit & Invoices (4 tools)
Tool | Description |
| Get credit line information for the business |
| Get business invoices starting from a given date |
| Get allocations for a specific invoice |
| Get payments for a specific invoice |
Groups (2 tools)
Tool | Description |
| Get all cardholder groups for the business |
| Get cardholders belonging to a specific group |
Tokens (6 tools)
Tool | Description |
| Get details of the current authentication token |
| Get all tokens for the authenticated user |
| Get basic token details for the authenticated user |
| Get the business token provisioning mode |
| Get token provisioning mode for a cardholder |
| Get issued tokens for a specific cardholder |
Callbacks (3 tools)
Tool | Description |
| Get available callback subscription types |
| Get all callback subscriptions for the business |
| Get a specific callback subscription by ID |
Partner (1 tool)
Tool | Description |
| Get partner details for the current business |
Features
Full API Coverage: 72 tools covering all GET endpoints of the PEX External API
Input Validation: All parameters validated with clear error messages
Retry Logic: Automatic retries with exponential backoff on 502/503/504 errors
Request Timeout: 30-second timeout prevents hanging requests
Structured Logging: JSON logs to stderr for debugging (stdout reserved for MCP)
Rich Documentation: All tool parameters include descriptions, valid values, and constraints
Example Queries
Once connected, you can ask Claude things like:
"What's my business account balance?"
"Show me all transactions from last week over $100"
"List all cards with their spending limits"
"What are the spending rules for card 12345?"
"Show me pending payments"
License
MIT
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
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/pexcard/mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server