Connect your Mangrove data to AI assistants using the Model Context Protocol
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.
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.
Replace the placeholders with your credentials as described in the Claude Desktop setup.
3
Enable the server
Toggle the Mangrove MCP server to “enabled” in your Cursor settings.
4
Test the integration
Open a new chat in Cursor and ask:“Show me all events from the last week for project [your-project-id]”
VS Code has native MCP support via GitHub Copilot Chat (agent mode). You can configure the server at workspace level (.vscode/mcp.json — shareable with your team) or at user level (applies across all workspaces).
1
Open the MCP configuration
Open the Command Palette (Cmd/Ctrl+Shift+P) and run MCP: Open User Configuration to edit your personal mcp.json, or create .vscode/mcp.json in your workspace root to share with teammates.
Replace YOUR_MCP_SERVER_URL with the URL provided by your Implementation Engineer. VS Code will prompt you for the auth token and API key the first time the server starts and store them securely.
3
Start the server
Click the Start action above the "mangrove" entry in mcp.json, or open Copilot Chat, switch to Agent mode, and select the Mangrove tools from the tool picker.
4
Test the integration
In Copilot Chat agent mode, ask:“What projects do I have access to in Mangrove?”
Claude Code is Anthropic’s CLI agent. It can connect to the Mangrove MCP server directly using the claude mcp add command.
1
Add the Mangrove MCP server
From any terminal, run:
claude mcp add --transport http mangrove \ --scope user \ --header "Authorization: Bearer YOUR_AUTH_TOKEN" \ --header "X-Mangrove-Token: YOUR_MANGROVE_API_KEY" \ YOUR_MCP_SERVER_URL
Replace the placeholders:
YOUR_MCP_SERVER_URL: Provided by your Implementation Engineer
YOUR_AUTH_TOKEN: Provided by your Implementation Engineer
YOUR_MANGROVE_API_KEY: Your API key from Mangrove API Settings
The --scope user flag makes the server available in all your Claude Code projects. Omit it to install only for the current project.
2
Verify the connection
In any Claude Code session, run /mcp to confirm the mangrove server is connected, then ask:“What projects do I have access to in Mangrove?”
Codex CLI is OpenAI’s terminal agent. It supports remote MCP servers with static Bearer tokens and custom headers through its TOML config.
1
Set environment variables for your secrets
Add to your shell profile (~/.zshrc, ~/.bashrc, etc.):
Replace YOUR_MCP_SERVER_URL with the URL from your Implementation Engineer. Codex automatically adds Authorization: Bearer ${MANGROVE_AUTH_TOKEN} from the env var.
3
Test the integration
Start a Codex session and ask:“What projects do I have access to in Mangrove?”
"Show me all events from project abc123 in the last 30 days that are missing data points""What locations are associated with project xyz789 and when was the last event recorded at each?"
"List all batches created in Q4 2024 with their CI scores, grouped by feedstock type""Which events from location loc_xyz have missing evidence files that I need for the upcoming audit?"
"Compare the average mass flow rates across my three production locations over the past quarter""Show me the trend in CI scores for corn feedstock over the last 6 months"
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.