Set up NextDNS in Metorial for Claude, ChatGPT and Cursor
Share NextDNS with your team in Claude, ChatGPT and Cursor through Metorial: API key sign-in, 15 tools (5 read-only).
To give your team NextDNS in Claude, ChatGPT, Cursor and other AI clients, an admin shares the NextDNS integration in a Metorial portal, and each person connects with an API key. Agents can manage NextDNS filtering profiles, including creating, renaming, inspecting, and deleting profiles. The integration has 15 tools, 5 read-only, 8 write and 2 destructive, plus 2 triggers.
What you'll learn
- How an admin shares NextDNS in a portal and how each person connects
- What NextDNS asks for when you connect, and where to find it
- How to keep the 5 read-only tools and reject the other 10
Before you start
- A portal with at least one access group
- An API key from NextDNS for each person, or one for a shared connection
- For the CLI steps: the Metorial CLI, signed in to your portal
Sign-in method
| Method | Type | What a person provides |
|---|---|---|
| API Key | API token | apiKey |
API Key
To connect, a person enters:
apiKey: NextDNS API key found at the bottom of your account page at https://my.nextdns.io/account
Setup settings
Setup also asks for:
profileId(optional): Default NextDNS profile ID to use for triggers and as a fallback for tools
Admin: share NextDNS in a portal
In the dashboard
Open Shared Resources
Open Workforce, choose the portal, and select Shared Resources under Access.
Share a new integration
Select Share a Resource, then New Integration, and choose NextDNS. For how members connect, choose Each person connects so everyone enters their own API key, or Shared connection to enter one API key for everyone.
Limit the tools
Under Tool Filters, set the write and destructive groups to Reject if agents should only read from NextDNS.
Choose who gets it
Add the access groups that should see NextDNS. When a person asks for access from the portal, the request appears under Access Requests.
With the CLI
The CLI cannot create the per-user NextDNS integration. Once it exists, check which groups have it:
Employee: connect NextDNS
In the portal
Open NextDNS in the catalog
Sign in to your portal and open NextDNS. The status reads Available.
Authenticate
Under Quick setup, select Authenticate. In the setup window, enter your API key (apiKey).
Confirm
The status changes to Configured. If it later reads Needs reconnect, select Reconnect and sign in again.
With the CLI
catalog search prints the catalog item ID.
Add it to your AI client
metorial install adds your NextDNS connection to a local MCP client such as Claude Code, Cursor or Codex. metorial list prints the integration ID and metorial client list the client identifiers.
For a client that takes a server URL, such as ChatGPT, metorial install custom <integration-id> creates an installation token and shows the endpoint details.
Make it read-only
Open the integration's Tool Filters and set the write and destructive groups to Reject. Agents keep the 5 read-only tools, such as get_logs and get_setup, and lose the 8 write tools, such as create_profile or update_privacy, and the 2 destructive tools, such as clear_logs or delete_profile.
Employees see the result on the integration's page in the portal under Tool access. For the full walkthrough, see Tool permissions.
Check it worked
metorial tools lists the 15 tools, minus any you rejected. list_profiles takes no input. It lists DNS configuration profiles in the NextDNS account.
To see every input a tool takes, run metorial schema <integration-id> <tool-key>.
Tools
Read-only tools (5)
get_profile: Retrieve the full configuration of a specific NextDNS profile, including security settings, privacy settings, parental controls, allowlist, denylist, rewrites, and operational settings. NeedsprofileId.get_analytics: Retrieve DNS query analytics for a NextDNS profile. NeedsprofileIdanddimension.get_setup: Retrieve connection and setup information for a NextDNS profile. NeedsprofileId.list_profiles: List DNS configuration profiles in the NextDNS account.get_logs: Retrieve DNS query logs for a NextDNS profile. NeedsprofileId.
Write tools (8)
update_privacy: Update the privacy and ad-blocking configuration for a NextDNS profile. NeedsprofileId.update_security: Update the security configuration for a NextDNS profile. NeedsprofileId.manage_rewrites: Manage DNS rewrite rules for a NextDNS profile. NeedsprofileId.create_profile: Create a new NextDNS DNS configuration profile and return its ID. Needsname.manage_allowlist_denylist: Add, remove, or toggle domains on a NextDNS profile's allowlist or denylist. NeedsprofileId.update_parental_control: Update parental control settings for a NextDNS profile. NeedsprofileId.update_settings: Update operational settings for a NextDNS profile. NeedsprofileId.update_profile: Rename a NextDNS configuration profile.
Destructive tools (2)
delete_profile: Permanently delete a NextDNS DNS configuration profile. NeedsprofileId.clear_logs: Permanently clear all DNS query logs for a NextDNS profile. **This action is irreversible** — all log data will be deleted. NeedsprofileId.
Triggers
NextDNS has 2 triggers, which fire on events in NextDNS:
inbound_webhookdns_query_log: Triggers on new DNS query log entries for a NextDNS profile.
Next steps
- Claude Code, Cursor, Codex and ChatGPT: connect each client to your portal and use NextDNS there
- Tool permissions: tool filters and what employees see
- NextDNS on metorial.com: the integration overview