lws-mcp
Manage an LWS account's domains, DNS zones, hosting and contacts from any MCP client, with read-only and purchase gating built in.
DNS: list a zone, add/update/delete records (A, AAAA, CNAME, ANAME, MX, NS, TXT, SRV, SPF, CAA), and check propagation against the LWS zone, the domain's nameservers and Cloudflare/Google/Quad9.
Domains: get owner/nameservers/status, check availability, list TLDs with prices, replace nameservers, lock or unlock transfers, e-mail the transfer auth code, create or delete a domain redirect.
Hosting: list hostings, get hosting and renewal details/prices, turn auto-renew on or off — buying and renewing only appear with
LWS_ENABLE_PURCHASES=true.Account: balance, purchase history, and list/get/create/update contacts (test-credit tools only in test mode).
Requests: search past requests and list deferred ones still pending.
Safety:
LWS_READ_ONLY=truedrops all write tools, every tool carries read/write/destroy annotations,LWS_TEST_MODE=truetargets the sandbox, and the API key never leaves the machine.
Provides a DNS propagation check by querying Cloudflare's 1.1.1.1 public DNS resolver, showing what DNS records are currently visible for a domain.
Click on "Deploy 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., "@lws-mcp add the CNAME records Stripe gave me to example.fr and tell me when they're live"
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.
lws-mcp
English · Français
An MCP server for the LWS Client API. Manage your domains, DNS zones, hosting and account from Claude, Cursor or any MCP client:
"Add the CNAME records Stripe gave me to example.fr, then tell me when they are live."
It covers the whole LWS Client API (29 endpoints), plus a propagation check that compares your LWS zone, its nameservers and three public resolvers.
Community project, not affiliated with or endorsed by LWS.
Tools
Area | Tools |
DNS |
|
Domains |
|
Hosting |
|
Account |
|
Requests |
|
¹ Paid: off unless LWS_ENABLE_PURCHASES=true. ² Only in test mode.
DNS record names can be written in full (_dmarc.example.fr): they are shortened to what the LWS zone expects (_dmarc, @).
Related MCP server: Logto MCP Server
Safety
An assistant with access to your DNS can take a site or a mailbox down, and one with access to purchases can spend money. So:
Purchases are off by default.
buy_hostingandrenew_hostingonly exist whenLWS_ENABLE_PURCHASES=true.Read-only mode.
LWS_READ_ONLY=trueremoves every tool that changes something.Hints for your client. Every tool declares whether it reads, writes or destroys (tool annotations), so clients can ask before running it.
Test environment.
LWS_TEST_MODE=truesends every request to the LWS sandbox.Your key stays local. It goes only to
api.lws.net, and is never logged or returned to the model.
Requirements
An LWS account and its API key: LWS Panel → your account number (LWS-XXXXXX, top right) → Api LWS → Clé API en mode PRODUCTION → voir. LWS guide.
The public IP address of the machine running the server, allowed on the same Api LWS page. Otherwise every call fails with
bad source <your IP>.uv (it fetches Python and the server for you).
Installation
Every client runs the same command, uvx lws-mcp, with LWS_LOGIN and LWS_API_KEY in its environment (see Configuration for the optional settings).
The buttons leave LWS_LOGIN and LWS_API_KEY empty: fill them in after installing.
claude mcp add lws \
-e LWS_LOGIN=123456 \
-e LWS_API_KEY=your-api-key \
-- uvx lws-mcpcodex mcp add lws \
--env LWS_LOGIN=123456 \
--env LWS_API_KEY=your-api-key \
-- uvx lws-mcpOr in ~/.codex/config.toml:
[mcp_servers.lws]
command = "uvx"
args = ["lws-mcp"]
env = { LWS_LOGIN = "123456", LWS_API_KEY = "your-api-key" }Use the button above, or add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (one project):
{
"mcpServers": {
"lws": {
"command": "uvx",
"args": [
"lws-mcp"
],
"env": {
"LWS_LOGIN": "123456",
"LWS_API_KEY": "your-api-key"
}
}
}
}code --add-mcp '{"name":"lws","command":"uvx","args":["lws-mcp"],"env":{"LWS_LOGIN":"123456","LWS_API_KEY":"your-api-key"}}'Or in .vscode/mcp.json:
{
"servers": {
"lws": {
"type": "stdio",
"command": "uvx",
"args": [
"lws-mcp"
],
"env": {
"LWS_LOGIN": "123456",
"LWS_API_KEY": "your-api-key"
}
}
}
}Add this block to the client's MCP file:
Client | File |
Claude Desktop | Settings → Developer → Edit Config ( |
Windsurf |
|
Gemini CLI |
|
Cline, Roo Code, Zed… | their MCP settings, same format |
{
"mcpServers": {
"lws": {
"command": "uvx",
"args": [
"lws-mcp"
],
"env": {
"LWS_LOGIN": "123456",
"LWS_API_KEY": "your-api-key"
}
}
}
}Configuration
Variable | Default | Description |
| required | Your LWS account ID (the digits of LWS-XXXXXX). |
| required | Production API key. |
| Test key, used instead of | |
|
| Send requests to the LWS test environment. |
|
| Only expose tools that read. |
|
| Expose |
|
| Request timeout, in seconds. |
|
| API base URL. |
Good to know
Deferred actions. Nameserver changes, transfer protection, auth codes, purchases and renewals are processed in the background. Follow them with
list_pending_requests.Propagation. A DNS change can take from minutes to a few hours to be seen everywhere: each resolver keeps the old answer until its TTL runs out.
check_dns_propagationcompares what is saved in the LWS zone, what the domain's nameservers answer (no cache) and what Cloudflare, Google and Quad9 answer, then says how long a stale answer can last. Some networks block direct DNS queries to nameservers; the resolvers are asked over HTTPS, so that part always works.Record ids change. LWS replaces a record under a new id when it is updated.
add_dns_recordandupdate_dns_recordreturn the current id.Rate limit. LWS refuses bursts of requests (about fifteen in a row) with
Invalid input (rate limit): wait a minute and retry.Allowed TTLs. 900, 1800, 3600, 7200, 21600, 43200 or 86400 seconds.
Development
git clone https://github.com/NKSTUD/lws-mcp && cd lws-mcp
uv sync
uv run pytest
uv run ruff check . && uv run ruff format --check .Try it against your account with the MCP Inspector, credentials in a local .env (see .env.example):
npx @modelcontextprotocol/inspector uv run --env-file .env lws-mcpSee CONTRIBUTING.md to add a tool or fix a bug.
License
Available Tools
26 toolsadd_dns_recordAIdempotent
Add a record to a domain's DNS zone. Propagation can take up to a few hours.
Inputs: name (required), type (required), value (required), domain (required), +1 more. Returns: object
check_dns_propagationARead-only
Check whether a DNS change is live: what is saved in the LWS zone, what the domain's nameservers answer, and what three public resolvers (Cloudflare, Google, Quad9) answer.
Public resolvers can keep an old answer until its TTL expires, so they may disagree for a while after a
change; the answer says how long a stale one can last.
Inputs: name (required), type, expected. Returns: object
check_domain_availabilityBRead-only
Check whether a domain name is free to register (data is true when available).
Inputs: domain (required). Returns: object
create_contactCIdempotent
Create a contact managed by the account, usable as owner of domains and hostings.
Inputs: city (required), email (required), phone (required), postal (required), +6 more. Returns: object
create_domain_redirectBIdempotent
Redirect a whole domain to a URL.
Inputs: url (required), domain (required), type. Returns: object
delete_dns_recordADestructive
Delete a DNS record. Check the id with get_dns_zone first: a wrong record can take a site or mail down.
Inputs: id (required), domain (required). Returns: object
delete_domain_redirectADestructive
Remove a domain's redirection (succeeds even if there was none).
Inputs: domain (required). Returns: object
get_account_balanceARead-only
Get the remaining balance of the prepaid account, in EUR.
Inputs: no named parameters. Returns: object
get_contactBRead-only
Get a contact's details (name, address, e-mail, phone, credit).
Inputs: contact (required). Returns: object
get_dns_zoneARead-only
List the DNS records of a domain (id, type, name, value, ttl). Use the ids to update or delete records.
Inputs: domain (required), name, type. Returns: object
get_domainARead-only
Get a domain's owner, nameservers and status flags (redemption, hold, transfer lock).
Inputs: domain (required). Returns: object
get_hostingBRead-only
Get a hosting's package, purchase and expiry dates, nameservers and auto-renewal settings.
Inputs: hosting (required). Returns: object
get_purchase_historyBRead-only
List every purchase, renewal and other transaction made through the API.
Inputs: no named parameters. Returns: object
get_renewal_pricesARead-only
Get the renewal price (hosting, domain, options) and the expiry status. Check it before renew_hosting.
Inputs: hosting (required). Returns: object
list_contactsARead-only
List the contacts managed by the account, keyed by contact ID.
Inputs: no named parameters. Returns: object
list_hosting_pricesARead-only
List every hosting package with its monthly price in EUR.
Inputs: no named parameters. Returns: object
list_hostingsARead-only
List every domain and hosting on the account, with expiry dates, nameservers and auto-renewal.
Inputs: no named parameters. Returns: object
list_pending_requestsBRead-only
List the deferred requests that have not been processed yet.
Inputs: no named parameters. Returns: object
list_requestsCRead-only
Search the requests made through the API. 'retour' stays empty until a deferred request is processed.
Inputs: value, subtype, endpoint. Returns: object
list_tldsBRead-only
List the extensions LWS sells with their purchase, renewal, transfer and restore prices (EUR).
Inputs: tld. Returns: object
request_transfer_authcodeBDestructive
Have the transfer authorization code e-mailed to the domain owner (deferred).
Inputs: domain (required). Returns: object
set_auto_renewAIdempotent
Turn automatic renewal of a hosting (and its domain, if bought at LWS) on or off.
Inputs: enabled (required), hosting (required). Returns: object
set_transfer_protectionBDestructive
Lock or unlock the transfer of a domain to another registrar (deferred).
Inputs: domain (required), enabled (required). Returns: object
update_contactAIdempotent
Update a contact's address, phone or password. Only the fields given are changed.
Inputs: contact (required), city, phone, postal, +3 more. Returns: object
update_dns_recordAIdempotent
Replace an existing DNS record. Every field is required; LWS adds the record if the id does not exist.
The record gets a new id: use the one returned here for any later change.
Inputs: id (required), name (required), type (required), value (required), +2 more. Returns: object
update_nameserversADestructive
Replace the four nameservers of a domain (deferred: see list_pending_requests).
Pointing a domain to other nameservers makes its LWS DNS zone stop answering. All four are required;
repeat a value when there are fewer than four.
Inputs: ns1 (required), ns2 (required), ns3 (required), ns4 (required), +1 more. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 26 tools
Most tools target a distinct resource and action, and descriptions clearly separate DNS zone inspection from propagation checks, contacts, hostings, and account/request operations. Minor overlap exists between add_dns_record and update_dns_record (upsert behavior) and between list_requests and list_pending_requests, but the descriptions largely resolve these.
All tool names use consistent snake_case with a verb-noun pattern (get_, list_, create_, update_, delete_, set_, check_, request_). The convention is predictable across every resource area.
26 tools is on the heavy side for an MCP surface; while the LWS domain is broad and each operation is granular, several tools could be consolidated (e.g., request listings, price lookups). The count is borderline rather than clearly excessive given the multi-service scope.
Core lifecycle operations are missing: there are no tools to register/renew/delete a domain, purchase/renew/delete a hosting, or delete a contact. The gap is especially pronounced because get_renewal_prices explicitly references renew_hosting, which does not exist, creating a dead end.
Maintenance
Related MCP Connectors
Hosted WooCommerce MCP server for Claude, ChatGPT and Cursor, with each action switched per account.
Hosted WordPress MCP server for Claude, ChatGPT and Cursor, with each action switched per account.
Create and manage Lindo AI websites, pages, blogs, clients, and credits from any MCP client.
Hosted Mailchimp MCP server for Claude, ChatGPT and Cursor, with each action switched per account.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceProvides AI agents with 220+ tools for building websites, sending email, managing contacts, invoicing, databases, automation, and more through a single secure connection. Features hardware-bound authentication and works with Claude Desktop, Claude Code, Cursor, and other MCP-compatible clients.MIT
- AlicenseBqualityBmaintenanceEnables managing Logto resources (users, applications, organizations, roles) via MCP clients like Cursor or Claude Desktop.261MIT

ZopDev MCPofficial
AlicenseNot gradedqualityBmaintenanceEnables AI assistants to query and, when scoped writes are enabled, manage cloud estate data—inventory, costs, recommendations, schedules, governance, and deployments—across AWS, Azure, and GCP through a hosted remote MCP endpoint.Apache 2.0- AlicenseNot gradedqualityAmaintenanceEnables clients such as Claude, Cursor, VS Code, and Windsurf to manage workspaces, projects, tasks, and AI agents through a hosted OAuth endpoint or a local stdio package, and to generate MCP tools from OpenAPI specs.2,530 npmMIT