MCP Server mcp-whoisxmlapi
mcp-whoisxmlapi
is a Model Context Protocol (MCP) server that provides AI tools access to the WhoisXMLAPI in a secure and scalable way.
For full documentation, see the MCP Server documentation.
Features
- Token-based Authentication: Secure API access using bearer tokens configured via environment variables
- SSE Support: Run as an HTTP server with Server-Sent Events (SSE) for web-based integrations
- Timeout Control: Configurable request timeouts
Installation
Option 1: Docker (Recommended)
You can run mcp-whoisxmlapi
directly with Docker without installing the binary:
{
"mcpServers": {
"whoisxmlapi": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e", "WHOISXMLAPI_TOKEN",
"whoisxmlapidotcom/mcp-whoisxmlapi:latest"
],
"env": {
"WHOISXMLAPI_TOKEN": "your-api-token-here"
}
}
}
}
Option 2: npm
Install via npm for convenience:
npm install -g @whoisxmlapidotcom/mcp-whoisxmlapi
npm install @whoisxmlapidotcom/mcp-whoisxmlapi
Editor Configuration with npm
If installed globally via npm:
{
"mcpServers": {
"whoisxmlapi": {
"command": "mcp-whoisxmlapi",
"args": [
],
"env": {
"WHOISXMLAPI_TOKEN": "your-api-token-here"
}
}
}
}
If installed locally in a project:
{
"mcpServers": {
"whoisxmlapi": {
"command": "npx",
"args": [
"@whoisxmlapidotcom/mcp-whoisxmlapi"
],
"env": {
"WHOISXMLAPI_TOKEN": "your-api-token-here"
}
}
}
}
Option 3: Binary Download
You can also download the appropriate binary for your operating system from the Downloads page and provide the full path to the binary (e.g., /path/to/mcp-whoisxmlapi
) in your editor configuration.
Docker
The MCP server is available as a Docker image using stdio
to communicate:
docker pull whoisxmlapidotcom/mcp-whoisxmlapi:latest
docker run --rm -e WHOISXMLAPI_TOKEN=your-token whoisxmlapidotcom/mcp-whoisxmlapi:latest
For SSE mode with Docker, expose the SSE port (default 3000
):
docker run --rm -p 3000:3000 -e WHOISXMLAPI_TOKEN=your-token whoisxmlapidotcom/mcp-whoisxmlapi:latest --sse --sse-port 3000
The configuration for SSE mode changes slightly in your editor's settings -- and note you'll need to run the Docker container in SSE mode for this to work prior to adding the configuration to your editor's or AI client settings:
{
"mcpServers": {
"whoisxmlapi": {
"url": "http://localhost:3000"
}
}
}
Do note that some MCP Clients will not support non-HTTPS endpoints.
With this configuration you can use the same MCP server for multiple AI clients at once: normally, AI clients will create multiple instances of an MCP server.
Environment Variables
WHOISXMLAPI_TOKEN
: Required. The API token for authenticating with the WhoisXMLAPI service.
Running Modes
Standard (stdio) Mode
By default, mcp-whoisxmlapi
runs in stdio mode, which is suitable for integration with editors and other tools that communicate via standard input/output.
export WHOISXMLAPI_TOKEN=your-token-here
mcp-whoisxmlapi
Server-Sent Events (SSE) Mode
Alternatively, you can run mcp-whoisxmlapi
as an HTTP server with SSE support for web-based integrations:
export WHOISXMLAPI_TOKEN=your-token-here
mcp-whoisxmlapi --sse --sse-port=3000
In SSE mode, the server will listen on the specified port (default: 3000) and provide the same MCP tools over HTTP using Server-Sent Events. This is useful for web applications or environments where stdio communication isn't practical.
Available SSE Options:
--sse
: Enable SSE server mode
--sse-port=PORT
: Specify the port to listen on (default: 3000)