MetorialDocs

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

Sign-in method

MethodTypeWhat a person provides
API KeyAPI tokenapiKey

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:

metorial-admin portals access list <portal-id> --type provider_template --search nextdns

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

metorial catalog search nextdns
metorial setup <catalog-item-id>

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.

metorial list nextdns
metorial client list
metorial install <client-identifier> <integration-id>

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 list nextdns
metorial tools <integration-id>
metorial call <integration-id> list_profiles -d '{}'

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. Needs profileId.
  • get_analytics: Retrieve DNS query analytics for a NextDNS profile. Needs profileId and dimension.
  • get_setup: Retrieve connection and setup information for a NextDNS profile. Needs profileId.
  • list_profiles: List DNS configuration profiles in the NextDNS account.
  • get_logs: Retrieve DNS query logs for a NextDNS profile. Needs profileId.

Write tools (8)

  • update_privacy: Update the privacy and ad-blocking configuration for a NextDNS profile. Needs profileId.
  • update_security: Update the security configuration for a NextDNS profile. Needs profileId.
  • manage_rewrites: Manage DNS rewrite rules for a NextDNS profile. Needs profileId.
  • create_profile: Create a new NextDNS DNS configuration profile and return its ID. Needs name.
  • manage_allowlist_denylist: Add, remove, or toggle domains on a NextDNS profile's allowlist or denylist. Needs profileId.
  • update_parental_control: Update parental control settings for a NextDNS profile. Needs profileId.
  • update_settings: Update operational settings for a NextDNS profile. Needs profileId.
  • update_profile: Rename a NextDNS configuration profile.

Destructive tools (2)

  • delete_profile: Permanently delete a NextDNS DNS configuration profile. Needs profileId.
  • clear_logs: Permanently clear all DNS query logs for a NextDNS profile. **This action is irreversible** — all log data will be deleted. Needs profileId.

Triggers

NextDNS has 2 triggers, which fire on events in NextDNS:

  • inbound_webhook
  • dns_query_log: Triggers on new DNS query log entries for a NextDNS profile.

Next steps