Benji Pays is now available in the Sherweb Marketplace
MCP server

Set up the Benji Pays MCP server

Every Model Context Protocol (MCP) client needs the same two things: the server URL https://developer.benjipays.com/mcp and your Benji Pays API key in the x-api-key header. Claude, Grok Build, Grok Bot, ChatGPT and Gemini have their own setup guides. This page covers the other documented clients.

MCP server URL

https://developer.benjipays.com/mcp

Send your Benji Pays API key in the x-api-key header.

Before you start

  1. In the Benji Pays app, open API Access and create a key with the scopes you need (a read-only key is enough for questions).
  2. Copy it somewhere safe. You will paste it into your client’s config, not into a chat.

Keep your API key safe

Create a key with only the scopes you need. If you just want to ask accounts receivable (AR) questions, create a read-only key. You can create as many keys as you like, each with its own scopes. A company admin creates the key. You cannot edit an existing key (create a new one and delete the old). Keys expire after 1, 3, 6 or 12 months. Put the key in your AI tool’s config or an environment variable, never in a chat message. Delete it in the Benji Pays app at any time to cut off access.

Windsurf

  1. Add to ~/.codeium/windsurf/mcp_config.json:
{
  "mcpServers": {
    "benjipays": {
      "serverUrl": "https://developer.benjipays.com/mcp",
      "headers": {
        "x-api-key": "${env:BENJI_PAYS_API_KEY}"
      }
    }
  }
}
  1. Set the environment variable BENJI_PAYS_API_KEY to your key, then restart Windsurf.

GitHub Copilot in VS Code

  1. Create .vscode/mcp.json in your workspace. VS Code prompts for the key and stores it as a password input.
{
  "inputs": [
    {
      "type": "promptString",
      "id": "benjipays-api-key",
      "description": "Benji Pays API key",
      "password": true
    }
  ],
  "servers": {
    "benjipays": {
      "type": "http",
      "url": "https://developer.benjipays.com/mcp",
      "headers": {
        "x-api-key": "${input:benjipays-api-key}"
      }
    }
  }
}

Microsoft Copilot Studio

  1. Open Microsoft Copilot Studio, select Agents, and choose your agent.
  2. Open the Tools page and select Add a tool, New tool, Model Context Protocol.
  3. Enter Server name “Benji Pays”, Server description “Benji Pays API and documentation”, and Server URL https://developer.benjipays.com/mcp.
  4. For authentication, select API key. Set Type to Header and Header name to x-api-key.
  5. Select Create, then Add tool, and enter your Benji Pays API key when prompted.
  6. Test in the Test your copilot panel: “List all available Benji Pays API endpoints.”

Roo Code

  1. Open the Roo Code panel in VS Code, select the MCP Servers icon, then Edit MCP Settings, and add this to mcp_settings.json. Roo Code reaches the server through the mcp-remote bridge, so Node.js must be installed.
{
  "mcpServers": {
    "benjipays": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://developer.benjipays.com/mcp",
        "--header",
        "x-api-key: YOUR_BENJI_PAYS_API_KEY"
      ]
    }
  }
}

On Windows, set “command” to “cmd” and start “args” with “/c”, “npx”.

Test the connection

  • “List all available Benji Pays API endpoints”
  • “Search the Benji Pays API for anything related to invoices”
  • “Get me a list of all my customers”

Troubleshooting

ProblemFix
401 UnauthorizedThe key is missing, mistyped or deleted, or API access is not active for your organization. Check the x-api-key header and the key in API Access.
403 ForbiddenThe key does not have the scope for that action. Create a key that includes it.
Requests slow down or return 429You hit the API rate limit. See Rate limits.

Claude, Grok Build, Grok Bot, ChatGPT, Codex, Gemini and Antigravity are trademarks of their respective owners. Benji Pays is not affiliated with or endorsed by them.