Skip to main content
The Mangrove MCP server enables you to query your MRV data using natural language through AI assistants like Claude and Cursor. Instead of manually exporting data and building custom queries, you can ask questions conversationally and receive structured insights from your production, accounting, and inventory data.

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
For detailed information about each endpoint, see the API Reference sections.

Setup

Prerequisites

To connect to the Mangrove MCP server, you’ll need:
  1. Mangrove API Key: Generate a read-only API key as an Account Admin in API Settings
  2. MCP Auth Token: Provided by your Mangrove account team
  3. MCP Server URL: https://mcp.gomangrove.com/mcp
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 claude_desktop_config.json:
Your auth token and API key go in the env block, and nothing else needs to change:
  • In AUTH_TOKEN, replace YOUR_AUTH_TOKEN with your MCP auth token, keeping the word Bearer and the space before it ("Bearer abc123").
  • In MANGROVE_API_TOKEN, replace YOUR_MANGROVE_API_KEY with your API key from Mangrove API Settings.
Leave ${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 to mcpServers. 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.
In Claude Code, run claude mcp add once per account:
Replace 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:

Example Prompts

Once connected, you can use natural language to query your Mangrove data. Here are example queries organized by common use cases:

Production & Operations

Accounting & Compliance

Analysis & Insights

Inventory & Credits

Important Considerations

AI-generated insights are produced by language models interpreting your Mangrove data. While powerful for exploration and analysis, always verify critical results against source data. MCP responses should complement, not replace, human judgment for compliance and reporting decisions.
The underlying data returned from Mangrove APIs is accurate and reflects your system of record. However, the AI assistant’s interpretation and summary of that data may occasionally contain inaccuracies or miss nuanced details.