Synergy Wholesale MCP
by AndyAIT
README.md
# Synergy Wholesale MCP
A small, read-only [MCP](https://modelcontextprotocol.io) server for the [Synergy Wholesale](https://synergywholesale.com) reseller API (SOAP, v3.18). It lets an AI assistant look up the domains on your reseller account.
> **Unofficial.** This project is not affiliated with or endorsed by Synergy Wholesale.
## Tools
| Tool | What it does |
| --- | --- |
| `synergy_list_domains` | List domains on the account (paged, optional status filter) |
| `synergy_search_domain` | Check whether a domain is available, with its cost price |
| `synergy_get_domain_status` | Registry status, ICANN verification, auto-renew, ID protection, nameservers |
| `synergy_get_domain_expiry` | Expiry date and auto-renew setting |
Domain auth/EPP codes and contact details are stripped from every response. No write operations are implemented.
## Requirements
- A Synergy Wholesale reseller account with an API key and Reseller ID (from the reseller portal).
- The public IP address the server connects from must be whitelisted in the portal, otherwise the API returns `ERR_LOGIN_FAILED`.
- Docker, or Python 3.10+.
## Configuration
```bash
cp .env.example .env
```
| Variable | Purpose |
| --- | --- |
| `SW_RESELLER_ID` | Your Reseller ID |
| `SW_API_KEY` | Your API key |
| `MCP_AUTH_TOKEN` | Bearer token clients must send over HTTP (`openssl rand -hex 32`) |
| `MCP_TRANSPORT` | `stdio` (default) or `streamable-http` (set by the Docker image) |
| `MCP_HTTP_HOST` / `MCP_HTTP_PORT` | HTTP bind address and port (defaults `0.0.0.0` / `8831`) |
`.env` is gitignored. Never commit it.
## Run
### Docker (HTTP)
```bash
docker compose up -d --build
```
The server listens at `http://127.0.0.1:8831/mcp`, published on the host's loopback interface only. Clients must send `Authorization: Bearer <MCP_AUTH_TOKEN>`.
### Local (stdio)
```bash
python3 -m venv .venv
.venv/bin/pip install -r requirements.txt
.venv/bin/python server.py
```
Example MCP client config for stdio:
```json
{
"mcpServers": {
"synergy-wholesale": {
"command": "/path/to/.venv/bin/python",
"args": ["/path/to/SynergyMCP/server.py"],
"env": { "SW_RESELLER_ID": "...", "SW_API_KEY": "..." }
}
}
}
```
### Adding to an existing compose stack (e.g. behind a Cloudflare tunnel)
```yaml
synergy-mcp:
build: ./SynergyMCP
container_name: synergy-mcp
restart: unless-stopped
environment:
MCP_TRANSPORT: streamable-http
MCP_HTTP_HOST: 0.0.0.0
MCP_HTTP_PORT: 8831
MCP_AUTH_TOKEN: ${SYNERGY_MCP_AUTH_TOKEN}
SW_RESELLER_ID: ${SW_RESELLER_ID}
SW_API_KEY: ${SW_API_KEY}
# No ports published: the tunnel reaches it over the compose network.
```
Point the tunnel's public hostname at `http://synergy-mcp:8831`. Keep the bearer token enabled whenever the service is reachable from the internet.
## Verifying it works
```bash
# Expect 401 without a token
curl -i -X POST http://127.0.0.1:8831/mcp
```
Then connect an MCP client with the bearer token and call `synergy_list_domains`.
## Development
```bash
python3 -m venv .venv && .venv/bin/pip install -r requirements.txt pytest
.venv/bin/pytest
```
## Security
See [SECURITY.md](SECURITY.md).
## Licence
[MIT](LICENSE)
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues