Queries the Tibber API for current electricity prices and your energy consumption.
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
claude mcp add tibber --env TIBBER_API_TOKEN='<TIBBER_API_TOKEN>' -- uv --directory '[PATH-TO-ROOT-OF-THE-CLONED-TIBBER-MCP-FOLDER]' run server.py~/.codex/config.toml
[mcp_servers.tibber]
command = "uv"
args = ["--directory", "[PATH-TO-ROOT-OF-THE-CLONED-TIBBER-MCP-FOLDER]", "run", "server.py"]
env = { TIBBER_API_TOKEN = "<TIBBER_API_TOKEN>" }
# codex mcp add tibber --env TIBBER_API_TOKEN='<TIBBER_API_TOKEN>' -- uv --directory '[PATH-TO-ROOT-OF-THE-CLONED-TIBBER-MCP-FOLDER]' run server.py~/.cursor/mcp.json
{
"mcpServers": {
"tibber": {
"command": "uv",
"args": [
"--directory",
"[PATH-TO-ROOT-OF-THE-CLONED-TIBBER-MCP-FOLDER]",
"run",
"server.py"
],
"env": {
"TIBBER_API_TOKEN": "<TIBBER_API_TOKEN>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"tibber": {
"type": "stdio",
"command": "uv",
"args": [
"--directory",
"[PATH-TO-ROOT-OF-THE-CLONED-TIBBER-MCP-FOLDER]",
"run",
"server.py"
],
"env": {
"TIBBER_API_TOKEN": "<TIBBER_API_TOKEN>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"tibber": {
"command": "uv",
"args": [
"--directory",
"[PATH-TO-ROOT-OF-THE-CLONED-TIBBER-MCP-FOLDER]",
"run",
"server.py"
],
"env": {
"TIBBER_API_TOKEN": "<TIBBER_API_TOKEN>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"tibber": {
"command": "uv",
"args": [
"--directory",
"[PATH-TO-ROOT-OF-THE-CLONED-TIBBER-MCP-FOLDER]",
"run",
"server.py"
],
"env": {
"TIBBER_API_TOKEN": "<TIBBER_API_TOKEN>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"tibber": {
"command": "uv",
"args": [
"--directory",
"[PATH-TO-ROOT-OF-THE-CLONED-TIBBER-MCP-FOLDER]",
"run",
"server.py"
],
"env": {
"TIBBER_API_TOKEN": "<TIBBER_API_TOKEN>"
}
}
}
}需要的环境变量
TIBBER_API_TOKEN
把占位值换成你自己的密钥;不要把密钥提交到代码仓库。