Benji Pays is now available in the Sherweb Marketplace
Grok Build · MCP server

Set up Grok Build with Benji Pays

This guide covers the Grok Build desktop app and the Grok Build TUI. You need a Benji Pays application programming interface (API) key to add the Model Context Protocol (MCP) server. The Grok Build desktop app was formerly Cursor.

MCP server URL

https://developer.benjipays.com/mcp

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

Before you start

  1. Create an application programming interface (API) key with the scopes you need in the Benji Pays app under API Access (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.

Grok Build desktop app

  1. Create a merchant API key in the Benji Pays app under API Access.
  2. Open ~/.cursor/mcp.json for every project, or .cursor/mcp.json in one project folder (create the file if it does not exist), and add the Benji Pays Model Context Protocol (MCP) server:
{
  "mcpServers": {
    "benjipays": {
      "url": "https://developer.benjipays.com/mcp",
      "headers": {
        "x-api-key": "YOUR_BENJI_PAYS_API_KEY"
      }
    }
  }
}
  1. Save the file and restart Grok Build.
  2. Open Customize in the sidebar, then MCPs, to confirm benjipays is on.
  3. Ask: “List all available Benji Pays API endpoints.”

Grok Build TUI

  1. Set the environment variable BENJI_PAYS_API_KEY to your Benji Pays API key.
  2. Run:
grok mcp add --transport http benjipays https://developer.benjipays.com/mcp --header 'x-api-key: ${BENJI_PAYS_API_KEY}'

Single quotes keep your shell from filling in the key. Grok Build reads the variable when it loads its config, so the key is not saved in ~/.grok/config.toml. You can also declare the server directly in that file under [mcp_servers.benjipays].

  1. Run grok mcp doctor benjipays to check the connection. In the TUI, /mcps opens the MCP tab.
  2. Ask: “List all available Benji Pays API endpoints.”

The TUI also reads .cursor/mcp.json, so a server you added for the desktop app shows up there too.

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 Cursor are trademarks of their respective owners. Benji Pays is not affiliated with or endorsed by them.