Connect a client
Sign in with your browser
Clients that support MCP OAuth only need the URL. Your browser opens on OCPPLab: sign in, choose the organization the agent may use, and select Allow. No token to copy, and the client refreshes its access on its own.
This works the same way in Cursor, VS Code, claude.ai connectors and ChatGPT: add https://api.ocpplab.io/mcp with no credentials.
- Reconnecting the same app skips the consent screen and keeps the organization you chose.
- Disconnect an app in Studio under Settings → Connected apps. It loses access within an hour.
Use an SDK token
For CI, scripts and headless agents, where no browser can open, send an SDK token as a header. The examples use the cpo server; swap the name and URL for any other domain.
Claude Code
Codex
Cursor
VS Code
Windsurf
Claude Desktop
Python
Add --scope project to share it through .mcp.json. Claude Code reads ${OCPPLAB_TOKEN} from each developer’s environment, so the file holds no secret:
Check it with claude mcp list. Tools appear as mcp__ocpplab-cpo__cpo_charge_points_list.
Test the connection
A working setup answers with "name": "ocpplab-cpo" in serverInfo. To browse tools interactively, run npx @modelcontextprotocol/inspector, choose Streamable HTTP, and enter the URL.