Skip to main content

Claude Desktop (custom connector + OAuth)

  1. In Claude Desktop: Settings → Connectors → Add → Add custom connector
Add custom connector modal in Claude Desktop
  1. Fill in the fields (hover each value to copy it):
Name
Remote MCP server URL
OAuth Client ID — any value (recommended: your company slug)
OAuth client secret — your Manglai API token
  1. Click Add and authorize. The server simulates OAuth and uses the secret as the Bearer token (no refresh).
You can also use direct Bearer with mcp-remote (below); both modes are supported.

Alternative: mcp-remote (direct Bearer)

Claude Desktop can also connect to the MCP by editing the configuration file with mcp-remote.

Configuration (JSON)

  1. Open the configuration file:
    • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
    • Windows: %APPDATA%\Claude\claude_desktop_config.json
  2. Add the MCP server:
  1. Replace your_token_here with your Manglai token
  2. Restart Claude Desktop

Verify Connection

In the Claude chat, look for the tools icon (🔧) — manglai should appear as a connected server. Test with:
“List my companies in Manglai”

Example Prompts

  • “List my companies in Manglai”
  • “What are my company’s emissions in 2024 by scope?”
  • “Show me electricity invoices for the last quarter”
  • “How many electric vehicles does my fleet have?”
  • “What active reduction goals do we have?”

Generate token

Create your access token for Claude