loading…
Search for a command to run...
loading…
Enables AI assistants to manage NextDNS profiles, settings, logs, analytics, and security configurations through 70+ operations via the Model Context Protocol.
Enables AI assistants to manage NextDNS profiles, settings, logs, analytics, and security configurations through 70+ operations via the Model Context Protocol.
A Model Context Protocol (MCP) server for the NextDNS API, built with FastMCP and generated from OpenAPI specifications.
This project provides an MCP server that exposes NextDNS API operations as tools that can be used by AI assistants and other MCP clients. The server is automatically generated from a comprehensive OpenAPI specification using the FastMCP library.
Complete documentation can be found in docs/index.md.
Copy the .env.example file to .env:
cp .env.example .env
Edit .env and set your NextDNS API key:
NEXTDNS_API_KEY=your_api_key_here
NEXTDNS_DEFAULT_PROFILE=your_profile_id # Optional
NEXTDNS_TEST_PROFILE=test_profile_id # For write operation tests
# Optional: Profile access control (see Profile Access Control section)
# NEXTDNS_READABLE_PROFILES=profile1,profile2
# NEXTDNS_WRITABLE_PROFILES=test_profile
# NEXTDNS_READ_ONLY=false
Build the Docker image:
docker build -t nextdns-mcp:latest .
Run the container with environment variables:
Option A: Direct environment variables (simple)
docker run -i --rm \
-e NEXTDNS_API_KEY=your_api_key_here \
-e NEXTDNS_DEFAULT_PROFILE=your_profile_id \
nextdns-mcp:latest
Option B: Docker secrets (recommended for production)
# Create secret
echo "your_api_key_here" | docker secret create nextdns_api_key -
# Run with Docker Swarm
docker service create \
--name nextdns-mcp \
--secret nextdns_api_key \
-e NEXTDNS_API_KEY_FILE=/run/secrets/nextdns_api_key \
nextdns-mcp:latest
Or for non-swarm (using mounted file):
# Create a secret file
echo "your_api_key_here" > /tmp/api_key.txt
chmod 600 /tmp/api_key.txt
# Run with mounted secret
docker run -i --rm \
-v /tmp/api_key.txt:/run/secrets/nextdns_api_key:ro \
-e NEXTDNS_API_KEY_FILE=/run/secrets/nextdns_api_key \
nextdns-mcp:latest
Option C: Environment file (development)
docker run -i --rm \
--env-file .env \
nextdns-mcp:latest
Note: MCP servers use stdio (standard input/output) for communication, not HTTP ports.
Install dependencies:
uv sync
Run the server:
uv run python -m nextdns_mcp.server
This server uses a modern, declarative approach:
FastMCP.from_openapi()httpx.AsyncClient for NextDNS API callssrc/nextdns_mcp/nextdns-openapi.yaml: OpenAPI 3.0 specification for NextDNS APIsrc/nextdns_mcp/server.py: FastMCP server implementationcatalog.yaml: Docker MCP Gateway catalog entry with server metadataDockerfile: Container definition with OCI labels for MCP GatewayAGENT.md: Development guidelines and safety rulesThis project publishes official Docker images with a standardized tagging policy:
:latest: Floating tag that tracks the most recent successful build from the main branch. This tag is rebuilt on changes to main and via scheduled rebuilds.:<major>: Floating tag for the most recent build in a given major series (e.g., :2). This tag is updated whenever a new image for that major line is published and may include unreleased changes if the corresponding build comes from a branch head.:<major>.<minor>: Floating tag for the most recent build in a given minor series (e.g., :2.0). Like :<major>, it is updated when new images are built for that series and may include unreleased changes.:<major>.<minor>.<patch>: Tags for specific application releases (e.g., :2.0.3). These are intended to be immutable once published via the release workflow.All floating tags (:latest, :<major>, :<major>.<minor>) are rebuilt regularly to include the latest OS security updates and any application changes present in the source commit used for that build. Consumers who require strict version pinning should use the full :<major>.<minor>.<patch> tags.
This project is released under the MIT License.
AGENT.md for guidelines and architectureВыполни в терминале:
claude mcp add nextdns-mcp -- npx Web content fetching and conversion for efficient LLM usage.
Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.
автор: modelcontextprotocolProvides auto-configuration for setting up an MCP server in Spring Boot applications.
A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also
автор: xuzexin-hzНе уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории ai