What is MCP?
The Model Context Protocol (MCP) is an open standard that enables AI assistants to securely connect to external data sources and APIs. The Mangrove MCP server implements this protocol, providing a bridge between your Mangrove account and MCP-enabled tools.MCP connections are read-only and respect your existing Mangrove API permissions. All queries are authenticated using your Mangrove API key.
Use Cases
The MCP integration is particularly useful for:- Ad-hoc reporting: Query specific metrics without building custom dashboards
- Data validation: Quickly audit data completeness and identify gaps
- Trend analysis: Ask questions about patterns across time periods or locations
- Cross-referencing: Correlate data across events, batches, and locations
Available Data
The MCP server provides access to all Mangrove API endpoints. You can query:Production Data
Projects, locations, feedstocks, event types, events, data points, and evidence files
Accounting & Reporting
Batches, ledger transactions, reports, models, and model runs
Inventory Management
Orders, issuances, retirements, and transfers
Account Administration
Account settings, user roles, and custom fields
Setup
Prerequisites
To connect to the Mangrove MCP server, you’ll need:- Mangrove API Key: Generate a read-only API key as an Account Admin in API Settings
- MCP Auth Token: Provided by your Mangrove account team
- MCP Server URL:
https://mcp.gomangrove.com/mcp
- Claude Desktop
- Cursor IDE
- VS Code
- Claude Code
- OpenAI Codex CLI
- Gemini CLI
1
Open your Claude Desktop configuration
In Claude Desktop, open Settings, select the Developer tab, and click Edit Config. This opens
claude_desktop_config.json in your default editor and creates the file if you don’t have one yet.On macOS, Settings sits in the Claude menu in your top menu bar, not inside the Claude window.If your version of Claude Desktop has no Developer tab, open the file yourself:- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
2
Add the Mangrove MCP server
Add the following configuration to your Your auth token and API key go in the
claude_desktop_config.json:env block, and nothing else needs to change:- In
AUTH_TOKEN, replaceYOUR_AUTH_TOKENwith your MCP auth token, keeping the wordBearerand the space before it ("Bearer abc123"). - In
MANGROVE_API_TOKEN, replaceYOUR_MANGROVE_API_KEYwith your API key from Mangrove API Settings.
${AUTH_TOKEN} and ${MANGROVE_API_TOKEN} in args exactly as written. They read the values from the env block.3
Restart Claude Desktop
Close and reopen Claude Desktop to load the new configuration.
4
Verify the connection
In Claude Desktop, you should now see the Mangrove MCP server available. Try a simple query:“What projects do I have access to in Mangrove?”
Connect multiple Mangrove accounts
If you manage more than one Mangrove account, you can connect all of them to the same assistant and ask about each one by name. Each Mangrove API key belongs to one account, so generate a key in each account’s API Settings and add the server once per account. The MCP auth token stays the same for every connection. Name each connection after its account, so you can tell the assistant which one to use. In Claude Desktop, add one entry per account tomcpServers. Only two things differ between entries: the name, and the API key in env. Each env block belongs to its own entry, so args stays exactly the same in both.
claude mcp add once per account:
ACCOUNT_A_API_KEY and ACCOUNT_B_API_KEY with each account’s API key. Cursor takes the same env blocks as Claude Desktop. In VS Code, Codex CLI and Gemini CLI, give each entry its own input id or environment variable for the API key (for example MANGROVE_API_TOKEN_A and MANGROVE_API_TOKEN_B); entries that share one read the same key and connect to the same account.
Then name the account in your prompt: