DataPacket MCP Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@DataPacket MCP Serverlist my servers"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
DataPacket MCP Server
An MCP (Model Context Protocol) server that provides access to the DataPacket GraphQL API. It exposes all DataPacket API operations as MCP tools, allowing LLMs and MCP clients to manage dedicated servers, view invoices, provision new servers, handle support requests, and more.
Features
33 tools covering all DataPacket GraphQL queries and mutations
Two transports: stdio (for local integrations) and streamable HTTP (for remote/web deployments)
Full coverage of the DataPacket API: servers, provisioning, billing, traffic, DNS, support, and post-install scripts
Prerequisites
Node.js 22 or later
A DataPacket API token (generate one in the Security page of the DataPacket client panel)
Installation
git clone git@github.com:hjpotter92/datapacket-mcp-server.git
cd datapacket-mcp-server
npm install
npm run buildConfiguration
All options can be set via environment variables or CLI flags. CLI flags take precedence over environment variables.
Option | CLI Flag | Environment Variable | Default | Description |
API Token |
|
| (required) | DataPacket API bearer token |
Transport |
|
|
|
|
Port |
|
|
| HTTP server port (only for |
Debug |
|
| off | Log all GraphQL requests and responses to stderr |
Usage
stdio transport (default)
# Via environment variable
DATAPACKET_API_TOKEN=your-token node build/index.js
# Via CLI flag
node build/index.js --api-token your-token
# Or using the bin name after npm link
datapacket-mcp-server --api-token your-tokenStreamable HTTP transport
node build/index.js --api-token your-token --transport http --port 3000The server will listen at http://localhost:3000/mcp.
MCP client configuration
stdio (e.g. for Cursor, Claude Desktop):
{
"mcpServers": {
"datapacket": {
"command": "node",
"args": ["/path/to/datapacket-mcp-server/build/index.js", "--api-token", "your-token"]
}
}
}Streamable HTTP:
{
"mcpServers": {
"datapacket": {
"type": "streamable-http",
"url": "http://localhost:3000/mcp"
}
}
}Available Tools
Queries (17)
Tool | Description |
| Account info (name, email, hostname, creation date) |
| List all API error codes |
| Single invoice by number |
| Paginated invoices with filters |
| All available data center locations |
| Available OS images for provisioning |
| Paginated post-install scripts |
| Server configs matching filter criteria |
| PTR record for an IP |
| Single server details by name/alias/IP |
| Link config task status |
| Paginated server list with filters |
| Single subscription details |
| Paginated subscriptions |
| Single support request with posts |
| Paginated support requests |
| Traffic statistics over a time period |
Mutations (16)
Tool | Description |
| Change IPMI password |
| Enable/disable link aggregation |
| Create a new post-install script |
| Open a support ticket |
| Delete a post-install script |
| Power on/off/reset/cycle a server |
| Provision a new server |
| Set default traffic plan for provisioning |
| Set or delete a PTR record |
| Set custom server alias |
| Set boot device via IPMI |
| Set primary IP address |
| Set or delete a single tag |
| Replace all tags on a server |
| Reply to a support ticket |
| Update an existing post-install script |
Security Best Practices for Remote Deployments
When running the server with the HTTP transport in a hosted/remote environment, follow these recommendations to keep your deployment secure:
Never expose the server directly to the internet
Always place the MCP server behind a reverse proxy (e.g. Nginx, Caddy, Traefik). The server does not implement TLS or authentication on its own, so the reverse proxy should handle:
TLS termination — serve traffic over HTTPS only.
Access control — restrict access by IP allowlist, VPN, or an authentication layer (e.g. HTTP Basic Auth, OAuth2 proxy, mutual TLS).
Protect your API token
Do not pass the token via CLI flags in production — command-line arguments are visible in process listings (
ps,/proc). Use theDATAPACKET_API_TOKENenvironment variable instead.Never commit tokens to version control. Use a secrets manager (e.g. Vault, AWS Secrets Manager, Doppler) or a
.envfile excluded from git.Rotate tokens regularly through the DataPacket security settings.
Limit network exposure
Bind the server to
127.0.0.1or a private interface rather than0.0.0.0. Let the reverse proxy handle external traffic.Use firewall rules (e.g.
iptables, security groups) to restrict which hosts can reach the server port.
Run with least privilege
Run the Node.js process as a non-root user with minimal filesystem permissions.
Use a process manager (e.g. systemd, PM2) to handle restarts, log rotation, and resource limits.
Consider running inside a container with a read-only filesystem and no extra capabilities.
Monitor and audit
Enable access logging on your reverse proxy to track all requests to the
/mcpendpoint.Monitor for unusual traffic patterns — the MCP server performs privileged operations (provisioning, power actions, DNS changes) that should be auditable.
Set up alerts for failed or unexpected requests.
Development
# Watch mode (recompiles on changes)
npm run dev
# Then run the server in another terminal
node build/index.js --api-token your-tokenLicense
MIT
This server cannot be installed
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/hjpotter92/datapacket-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server