Install
Add to ~/Library/Application Support/Claude/claude_desktop_config.json
Windows / Linux path
%APPDATA%\Claude\claude_desktop_config.json~/.config/Claude/claude_desktop_config.json{
"mcpServers": {
"de-cernion-cernion-energy-tools": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://api.cernion.de/api/mcp",
"--header",
"Authorization:${MCP_HEADER_AUTHORIZATION}"
],
"env": {
"MCP_HEADER_AUTHORIZATION": "Bearer <YOUR_VALUE>"
}
}
}
}
Replace placeholder values in `env` first. Restart Claude Desktop to activate the new server. If the server uses OAuth (not known from registry metadata), mcp-remote opens a browser to sign in on first start and caches tokens in ~/.mcp-auth.
Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
Windows / Linux path
.cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global).cursor/mcp.json (project) or ~/.cursor/mcp.json (global){
"mcpServers": {
"de-cernion-cernion-energy-tools": {
"url": "https://api.cernion.de/api/mcp",
"headers": {
"Authorization": "Bearer <YOUR_VALUE>"
}
}
}
}
Cursor usually picks up config changes automatically; if the server does not appear, reload the window.
Add to .mcp.json (project) or ~/.claude.json (global)
Windows / Linux path
.mcp.json (project) or %USERPROFILE%\.claude.json (global).mcp.json (project) or ~/.claude.json (global){
"mcpServers": {
"de-cernion-cernion-energy-tools": {
"type": "http",
"url": "https://api.cernion.de/api/mcp",
"headers": {
"Authorization": "Bearer <YOUR_VALUE>"
}
}
}
}
The server will be available in the next Claude Code session. If the server uses OAuth, run /mcp inside Claude Code to authenticate.
Add to .vscode/mcp.json
Windows / Linux path
.vscode\mcp.json.vscode/mcp.json{
"servers": {
"de-cernion-cernion-energy-tools": {
"type": "http",
"url": "https://api.cernion.de/api/mcp",
"headers": {
"Authorization": "Bearer <YOUR_VALUE>"
}
}
}
}
Reload the VS Code window to activate.
Add to ~/.codeium/windsurf/mcp_config.json
Windows / Linux path
%USERPROFILE%\.codeium\windsurf\mcp_config.json~/.codeium/windsurf/mcp_config.json{
"mcpServers": {
"de-cernion-cernion-energy-tools": {
"serverUrl": "https://api.cernion.de/api/mcp",
"headers": {
"Authorization": "Bearer <YOUR_VALUE>"
}
}
}
}
Restart Windsurf (or refresh its MCP servers panel) to activate the new server.
Windsurf Next uses ~/.codeium/windsurf-next/mcp_config.json. Devin Desktop (the Windsurf rebrand) uses ~/.config/devin/mcp_config.json and imports the Windsurf file.
Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
Windows / Linux path
%APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json{
"mcpServers": {
"de-cernion-cernion-energy-tools": {
"type": "streamableHttp",
"url": "https://api.cernion.de/api/mcp",
"headers": {
"Authorization": "Bearer <YOUR_VALUE>"
}
}
}
}
Cline reloads cline_mcp_settings.json automatically; if the server does not appear, reload the VS Code window.
Open it from Cline's MCP Servers panel → Configure. Roo Code uses a different file and format.
Configuration
Environment variables this server reads. Secrets stay on your machine.
| Name | Required | Description |
|---|---|---|
| PORT | No | API Gateway port Default: 3000 |
| LOG_LEVEL | No | Logging level (info, debug, warn, error) Default: info |
| NAMESPACE | No | Moleculer namespace for service isolation |
| TRANSPORTER | No | Message transporter (NATS, Redis, MQTT, …) |
| GEMINI_MODEL | No | Gemini model name Default: gemini-3-pro-preview |
| CERNION_TOKEN | No | Cernion MCP token (request at https://cernion.de/ or email dev@stromdao.com) |
| GEMINI_API_KEY | No | Google Gemini API key (required for AI agent) |
| MCP_SERVER_URL | No | MCP server URL |
| METRICS_ENABLED | No | Enable Moleculer metrics collection Default: false |
| TRACING_ENABLED | No | Enable Moleculer tracing Default: false |
| BULKHEAD_ENABLED | No | Enable bulkhead concurrency protection Default: false |
| ASYNC_POLLER_DEBUG | No | Enable verbose async job poller debug logging Default: false |
| REQUEST_TIMEOUT_MS | No | Broker request timeout in ms Default: 900000 |
| RETRY_POLICY_ENABLED | No | Enable broker-level retries for retryable errors Default: false |
| CIRCUIT_BREAKER_ENABLED | No | Enable circuit breaker protection Default: false |
| GRID_CONNECTION_DB_PATH | No | PouchDB path for Netzanschluss validation reports (v0.14) Default: ./.grid-connections |
| ASYNC_POLLER_LOG_MAX_CHARS | No | Max chars for poller debug payload snippets Default: 400 |
| DATASOURCE_CUSTOM_PLUGINS_DIR | No | Custom datasource connector directory Default: custom-connectors |
| DATASOURCE_SCRAPER_TIMEOUT_MS | No | Timeout for scraper connector page loads Default: 30000 |
| DATASOURCE_CONNECTOR_PLUGINS_DIR | No | Built-in datasource connector directory Default: src/connectors |
| DATASOURCE_MAX_INFER_SAMPLE_ROWS | No | Max sample rows used for schema inference Default: 200 |
| DATASOURCE_MONGO_COLLECTION_AUDIT | No | Collection name for privacy/audit records Default: datasource_audit |
| DATASOURCE_MONGO_COLLECTION_CACHE | No | Collection name for cached datasource rows Default: datasource_cache |
| DATASOURCE_DEFAULT_PRIVACY_CONTEXT | No | Default privacy mode for datasource reads Default: ai-agent |
| DATASOURCE_MONGO_COLLECTION_REGISTRY | No | Collection name for datasource definitions Default: datasource_registry |
Remote headers
HTTP headers the remote endpoint expects.
| Name | Required | Description |
|---|---|---|
| Authorization secret | Yes | Cernion API token from https://cernion.de/cet-token/ |