@pactpay/mcp-server
v0.2.1
Published
PactPay MCP server for organizations, plans, balances, and API keys
Maintainers
Readme
PactPay MCP Server
PactPay MCP server for browser-based authentication, organization and plan queries, balance checks, and API key management.
Package:
@pactpay/mcp-server
Defaults:
- API:
https://pactpay.app - Web:
https://pactpay.app
Optional endpoint overrides:
PACTPAY_BASE_URLPACTPAY_WEB_BASE_URL
No manual configuration is required for tokens, email login, org ID, or auth callback port.
Install
npx -y @pactpay/mcp-serverOr:
npm i -g @pactpay/mcp-server
pactpay-mcp-serverConfiguration
Codex CLI
~/.codex/config.toml
[mcp_servers.pactpay]
command = "npx"
args = ["-y", "@pactpay/mcp-server"]
startup_timeout_sec = 60With custom endpoints:
[mcp_servers.pactpay]
command = "npx"
args = ["-y", "@pactpay/mcp-server"]
startup_timeout_sec = 60
[mcp_servers.pactpay.env]
PACTPAY_BASE_URL = "https://pactpay.app"
PACTPAY_WEB_BASE_URL = "https://pactpay.app"Cursor
~/.cursor/mcp.json
{
"mcpServers": {
"pactpay": {
"command": "npx",
"args": ["-y", "@pactpay/mcp-server"]
}
}
}VS Code / Copilot
.vscode/mcp.json
{
"servers": {
"pactpay": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@pactpay/mcp-server"]
}
}
}Claude Code
claude mcp add pactpay --scope project -- npx -y @pactpay/mcp-serverAuth Flow
- Start the MCP server.
- Call
get_auth_url,open_auth_browser, or any protected tool. - The server opens the browser to the PactPay auth page.
- If the browser already has an active PactPay session, authorization completes automatically.
- If not, sign in and the token is returned to the local MCP server automatically.
- The server automatically selects the first manageable organization as the default context.
