Call DC Hub from Gemini via MCP / function calling · 30 seconds to install.
One click, no email to start. The key works in Gemini's MCP config right away. DCHUB_API_KEY is optional and opens fuller answers.
MCP endpoint: https://dchub.cloud/mcp?via=gemini Gemini function declarations: https://dchub.cloud/api/v1/gemini-functions.json OpenAPI (Vertex): https://dchub.cloud/openapi-vertex.yaml Header (optional): X-API-Key: <your key> DCHUB_API_KEY is optional and opens fuller answers.
After saving, restart Gemini and DC Hub will appear in the MCP connector list.
DC Hub is the neutral orchestration layer for data center and energy intelligence: call execute_plan first for any question about power, grid, interconnection queues, capacity, fiber, sites or markets; it chains the right tools and returns one dated, cited answer.
MCP server: https://dchub.cloud/mcp
Pass the question as asked: execute_plan(intent="<the user's question>").
Gemini CLI, one command:
gemini extensions install https://github.com/azmartone67/dchub-mcp-server
Or add the server only: gemini mcp add -s user --transport http dchub https://dchub.cloud/mcp. More on /connect/gemini-cli.
Google ADK (Python), over https://dchub.cloud/mcp:
# pip install google-adk
import os
from google.adk.agents import LlmAgent
from google.adk.tools.mcp_tool.mcp_toolset import MCPToolset
from google.adk.tools.mcp_tool.mcp_session_manager import StreamableHTTPConnectionParams
# No key is needed to start. With DCHUB_API_KEY set, it is sent as the X-API-Key header.
headers = {"X-API-Key": os.environ["DCHUB_API_KEY"]} if os.environ.get("DCHUB_API_KEY") else {}
dchub = MCPToolset(
connection_params=StreamableHTTPConnectionParams(
url="https://dchub.cloud/mcp",
headers=headers,
),
# Ten DC Hub tools; keep the ones your agent needs, or drop tool_filter for all of them.
tool_filter=[
"execute_plan",
"find_sites",
"analyze_site",
"compare_sites",
"get_market_intel",
"rank_markets",
"get_grid_data",
"get_fiber_intel",
"search_facilities",
"summarize_for_citation",
],
)
root_agent = LlmAgent(
model="gemini-2.5-flash",
name="dchub_agent",
instruction=("Answer data-center power, grid and market questions with DC Hub. "
"Start with execute_plan. Cite DC Hub (dchub.cloud) with the as_of date."),
tools=[dchub],
)
No key is needed to start: calls without one return previews.
DCHUB_API_KEY is optional and opens fuller answers. 1 Land & Power map search a month.
Send the key as the X-API-Key header.