next-dns-mcp
Provides tools for managing NextDNS profiles, denylists, allowlists, blocklists, analytics, DNS logs, and parental control settings.
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., "@next-dns-mcpAdd example.com to my blocklist"
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.
next-dns-mcp
MCP-server för NextDNS med Streamable HTTP, redo att deployas på Fly.io.
Funktioner
Lista/skapa/uppdatera/ta bort profiler
Denylist / allowlist / blocklists
Analytics (status, domains, devices, … + time-series)
DNS-loggar (hämtning, clear, download-URL)
Generiska GET/PATCH för nästlade sektioner (
security,privacy,settings/…)
Related MCP server: nextdns-mcp
Snabbstart lokalt
cp .env.example .env
# fyll i NEXTDNS_API_KEY (från https://my.nextdns.io/account)
# valfritt: NEXTDNS_PROFILE_ID, MCP_AUTH_TOKEN
npm install
npm run devHealth: GET http://127.0.0.1:8080/health
MCP: POST http://127.0.0.1:8080/mcp
Smoke-test:
NEXTDNS_API_KEY=… MCP_AUTH_TOKEN=dev npm run dev &
MCP_URL=http://127.0.0.1:8080/mcp MCP_AUTH_TOKEN=dev npm run smokeDeploy till Fly.io
1. Förutsättningar
flyctl installerat och inloggat (
fly auth login)NextDNS API-nyckel
2. Skapa app + secrets
fly apps create next-dns-mcp # hoppa över om appen redan finns
fly secrets set \
NEXTDNS_API_KEY="din_nextdns_api_key" \
MCP_AUTH_TOKEN="$(openssl rand -hex 32)" \
NEXTDNS_PROFILE_ID="valfri_default_profil"Uppdatera ALLOWED_HOSTS i fly.toml om appnamnet skiljer sig från next-dns-mcp.
3. Deploy
fly deploy
fly status
fly open /healthMCP-URL: https://next-dns-mcp.fly.dev/mcp
Anslut från Cursor
{
"mcpServers": {
"next-dns": {
"url": "https://next-dns-mcp.fly.dev/mcp",
"headers": {
"Authorization": "Bearer <MCP_AUTH_TOKEN>"
}
}
}
}Transport: Streamable HTTP.
Anslut från Claude (iPhone / web / Desktop)
Claude kräver OAuth (Client ID + Secret). Konfigurera på claude.ai (synkas till iPhone-appen):
Customize → Connectors → Add custom connector
URL:
https://next-dns-mcp.fly.dev/mcpOAuth Client ID: värdet av
OAUTH_CLIENT_ID(defaultnextdns-mcp-claude)OAuth Client Secret: värdet av
OAUTH_CLIENT_SECRET(Fly secret)Klicka Add → Connect
I webbläsaren: ange
MCP_AUTH_TOKENsom lösenord och godkänn
I iPhone-appen: + → Connectors och aktivera NextDNS.
Anslut från ChatGPT
ChatGPT visar en unik Callback URL per connector, typ:
https://chatgpt.com/connector/oauth/<id>
Den mönstret accepteras automatiskt av servern (ingen manuell registrering behövs).
Aktivera Developer mode i ChatGPT om det behövs
Lägg till MCP / connector med URL:
https://next-dns-mcp.fly.dev/mcpOAuth Client ID:
nextdns-mcp-claudeOAuth Client Secret: samma som på Fly (
OAUTH_CLIENT_SECRET)Lämna/ange den Callback URL ChatGPT visar (servern tillåter
chatgpt.com/connector/oauth/*)Godkänn och ange
MCP_AUTH_TOKENpå consent-sidan
Om ChatGPT visar en ovanlig callback-URL, sätt den via Fly-secret:
fly secrets set OAUTH_EXTRA_REDIRECT_URIS="https://exakt-url-fran-chatgpt"Miljövariabler
Variabel | Obligatorisk | Beskrivning |
| ja | API-nyckel från NextDNS-kontot |
| ja | Bearer-token + lösenord på OAuth-consent |
| ja | Secret till Claude/ChatGPT connector |
| nej | Default |
| nej | Extra callback-URL:er (kommaseparerade) |
| ja i prod | t.ex. |
| nej | Default-profil om |
| nej | Default |
| nej | Default |
| nej | Reserved for future host checks |
Verktyg (urval)
Tool | Syfte |
| Lista profiler |
| Hämta profil |
| Blockera domän |
| Tillåt domän |
| Analytics / time-series |
| DNS-loggar |
| Nästlade sektioner |
Föräldrakontroll
Tool | Syfte |
| Hämta hela parentalControl |
| Katalog: appar/spel (minecraft, tiktok, …) |
| Katalog: kategorier (porn, gaming, …) |
| Blockera/schemalägg app ( |
| Ta bort app-regel |
| Blockera/schemalägg kategori |
| Ta bort kategori-regel |
| Sätt fritidstider + timezone |
| safeSearch / youtubeRestrictedMode / blockBypass |
recreation: true = tillåten bara under fritidstiderna. recreation: false + active: true = alltid blockerad.
Utveckling
npm run typecheck
npm run build
npm startAPI-dokumentation: https://nextdns.github.io/api/
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
- mcpOAuthcom.gibsonai
GibsonAI MCP server: manage your databases with natural language
- SupabaseOAuthcom.supabase
MCP server for interacting with the Supabase platform
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
MCP server for AI dialogue using various LLM models via AceDataCloud
Related MCP Servers
- AlicenseNot gradedqualityNot gradedmaintenanceA lightweight MCP server for managing DNS records, purging cache, and interacting with the Cloudflare API through natural language commands.24
- AlicenseAqualityAmaintenanceEnables AI assistants to manage NextDNS profiles, settings, logs, analytics, and security configurations through 70+ operations via the Model Context Protocol.810MIT
- AlicenseAqualityCmaintenanceMCP server for Pi-hole v6 that enables management of blocklists, DNS blocking, domain allow/deny lists, and query diagnostics through natural language.19MIT
- AlicenseNot gradedqualityAmaintenanceEnables natural language management of AdGuard Home DNS filtering, clients, DHCP, rewrites, and more via MCP.2435MIT
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/kajmund/next-dns-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server