dchub-mcp-server 2.12.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Martone Advisors LLC
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,48 @@
1
+ # dchub-mcp-server
2
+
3
+ Live data-center and energy intelligence for AI agents, from [DC Hub](https://dchub.cloud): 24,500+ facilities and 92 MCP tools covering power grids, interconnection queues, fiber, gas, site selection, markets and M&A.
4
+
5
+ DC Hub is a **hosted** MCP server at `https://dchub.cloud/mcp` (Streamable HTTP). If your client supports remote MCP servers, point it at that URL directly. This package is a small launcher for clients that only run local (stdio) servers: it connects them to the hosted server.
6
+
7
+ ## Use
8
+
9
+ ```bash
10
+ npx -y dchub-mcp-server
11
+ ```
12
+
13
+ Claude Desktop, Cursor, Windsurf, Cline and other JSON-config clients:
14
+
15
+ ```json
16
+ {
17
+ "mcpServers": {
18
+ "dchub": {
19
+ "command": "npx",
20
+ "args": ["-y", "dchub-mcp-server"],
21
+ "env": { "DCHUB_API_KEY": "" }
22
+ }
23
+ }
24
+ }
25
+ ```
26
+
27
+ ## Keys and plans
28
+
29
+ - **Free tier:** works with no key. Leave `DCHUB_API_KEY` empty.
30
+ - **Full data:** get a free key in one message by asking your agent to call `claim_free_key`, or at https://dchub.cloud/connect, then set `DCHUB_API_KEY`.
31
+ - **Paid:** $10 credit pack (1,000 API credits), Developer $49/mo, Pro $99/mo. See https://dchub.cloud/pricing.
32
+
33
+ Environment variables:
34
+
35
+ | Variable | Purpose |
36
+ | --- | --- |
37
+ | `DCHUB_API_KEY` (or `X_API_KEY`) | Optional API key, sent as the `X-API-Key` header |
38
+ | `DCHUB_MCP_URL` | Override the endpoint (default `https://dchub.cloud/mcp`) |
39
+
40
+ ## Links
41
+
42
+ - Connect guide for every client: https://dchub.cloud/connect
43
+ - Tool catalog: https://dchub.cloud/llms.txt
44
+ - Official MCP Registry: `cloud.dchub/mcp-server`
45
+ - Source: https://github.com/azmartone67/dchub-mcp-server
46
+ - Node SDK: [`dchub`](https://www.npmjs.com/package/dchub)
47
+
48
+ MIT licensed. The hosted data service is operated by DC Hub.
@@ -0,0 +1,30 @@
1
+ #!/usr/bin/env node
2
+ // DC Hub MCP launcher: bridges a stdio MCP client to the hosted server.
3
+ // Free tier works with no key. Set DCHUB_API_KEY (or X_API_KEY) for full data.
4
+ import { spawn } from "node:child_process";
5
+ import { createRequire } from "node:module";
6
+ import path from "node:path";
7
+
8
+ const require = createRequire(import.meta.url);
9
+ const url = process.env.DCHUB_MCP_URL || "https://dchub.cloud/mcp";
10
+ const key = process.env.DCHUB_API_KEY || process.env.X_API_KEY || "";
11
+
12
+ let proxy;
13
+ try {
14
+ const pkgDir = path.dirname(require.resolve("mcp-remote/package.json"));
15
+ proxy = path.join(pkgDir, "dist", "proxy.js");
16
+ } catch {
17
+ console.error("[dchub] could not find mcp-remote; reinstall dchub-mcp-server");
18
+ process.exit(1);
19
+ }
20
+
21
+ const args = [proxy, url, "--transport", "http-only"];
22
+ if (key) args.push("--header", `X-API-Key:${key}`);
23
+ args.push(...process.argv.slice(2));
24
+
25
+ const child = spawn(process.execPath, args, { stdio: "inherit", env: process.env });
26
+ child.on("exit", (code, signal) => {
27
+ if (signal) process.kill(process.pid, signal);
28
+ else process.exit(code ?? 0);
29
+ });
30
+ for (const sig of ["SIGINT", "SIGTERM"]) process.on(sig, () => child.kill(sig));
package/package.json ADDED
@@ -0,0 +1,21 @@
1
+ {
2
+ "name": "dchub-mcp-server",
3
+ "version": "2.12.19",
4
+ "description": "DC Hub MCP server launcher: live data-center, power-grid, fiber and site-selection intelligence for AI agents (24,500+ facilities, 92 tools). Connects any stdio MCP client to the hosted server at https://dchub.cloud/mcp.",
5
+ "type": "module",
6
+ "bin": {
7
+ "dchub-mcp-server": "bin/dchub-mcp-server.mjs"
8
+ },
9
+ "files": ["bin", "README.md", "LICENSE"],
10
+ "engines": { "node": ">=18" },
11
+ "dependencies": {
12
+ "mcp-remote": "^0.14.3"
13
+ },
14
+ "keywords": ["mcp", "model-context-protocol", "mcp-server", "data-center", "datacenter", "energy", "power-grid", "fiber", "site-selection", "ai-agents", "dchub"],
15
+ "homepage": "https://dchub.cloud/connect",
16
+ "repository": { "type": "git", "url": "git+https://github.com/azmartone67/dchub-mcp-server.git" },
17
+ "bugs": { "url": "https://github.com/azmartone67/dchub-mcp-server/issues" },
18
+ "author": "DC Hub <api@dchub.cloud> (https://dchub.cloud)",
19
+ "license": "MIT",
20
+ "mcpName": "cloud.dchub/mcp-server"
21
+ }