Skip to main content Announcing Tool Policies: AI agent permissions down to the field Read the announcement
Live 89 Actions

Tailscale MCP Server
for AI Agents

Connect your AI agent to StackOne's Tailscale MCP server and give it 89 MCP tools out of the box. Auth, tool execution, and security all managed.

Tailscale logo
Tailscale MCP Server
Built by StackOne StackOne
DrataGPLocalyzeFlipMindtoolsScreenloop

Coverage

89 Agent Actions

Agents can read, write and delete in Tailscale. Extend your agent's capabilities with custom actions.

Authentication

Agent Tool Authentication

Per-user OAuth in one call. Your Tailscale MCP server gets session-scoped tokens with zero credentials stored on your infra.

Agent Auth →

Security

Agent Protection

Every Tailscale tool response scanned for prompt injection in milliseconds, with 88.7% accuracy, all running on CPU.

Prompt Injection Defense →

Performance

Max Agent Context. Min Cost.

Free up to 96% of your agent's context window to enhance reasoning and reduce cost, on every Tailscale call.

Tools Discovery →

What is the Tailscale MCP Server?

A Tailscale MCP server lets AI agents read and write Tailscale data through the Model Context Protocol, Anthropic's open standard for connecting LLMs to external tools. StackOne's Tailscale MCP server ships with 89 pre-built actions, fully extensible via the Connector Builder, plus managed authentication, prompt injection defense, observability, and agent execution runtime. Connect it from MCP clients like Claude Desktop, Claude Code, Cursor, Goose, and VS Code, or from agent frameworks like OpenAI Agents SDK, LangChain, and Vercel AI SDK.

All Tailscale MCP Tools

Every StackOne action for Tailscale, ready for your agent. Read, write and delete, scoped to exactly what you need.

Contacts

  • Get Contacts

    Get the account, support and security contacts of the tailnet.

  • Update Contact

    Change a tailnet contact email.

Device Invites

  • Create Device Invites

    Create invites to share a device with other users.

  • List Device Invites

    List the share invites for a device.

A Device Invites

  • Get A Device Invite

    Get a device share invite by ID.

  • Delete A Device Invite

    Delete a device share invite.

Device Routes

  • List Device Routes

    List the subnet routes a device advertises and which are enabled.

  • Set Device Routes

    Set the enabled subnet routes for a device.

A Devices

  • Get A Device

    Get a Tailscale device by ID.

  • Delete A Device

    Remove a device from the Tailscale tailnet.

Device Posture Attributes

  • Get Device Posture Attributes

    Get the posture attributes of a device.

  • Batch Update Device Posture Attributes

    Set or delete custom posture attributes on several devices at once.

  • Set Device Posture Attribute

    Create or update one custom posture attribute on a device.

  • Delete Device Posture Attribute

    Delete one custom posture attribute from a device.

DNS Nameservers

  • List DNS Nameservers

    List the global DNS nameservers of the tailnet.

  • Set DNS Nameservers

    Replace the global DNS nameservers of the tailnet.

DNS Search Paths

  • List DNS Search Paths

    List the DNS search domains of the tailnet.

  • Set DNS Search Paths

    Replace the DNS search domains of the tailnet.

DNS Preferences

  • Get DNS Preferences

    Get the MagicDNS preference of the tailnet.

  • Set DNS Preferences

    Turn MagicDNS on or off for the tailnet.

Split DNSs

  • Get Split DNS

    Get the split DNS settings of the tailnet.

  • Update Split DNS

    Add, change or remove split DNS domains.

  • Set Split DNS

    Replace all split DNS settings of the tailnet.

DNS Configurations

  • Get DNS Configuration

    Get the full DNS configuration of the tailnet.

  • Set DNS Configuration

    Replace the full DNS configuration of the tailnet.

Unified Groups

  • List Unified Groups

    List the policy file groups of a Tailscale tailnet.

  • Get Unified Group

    Get a Tailscale policy file group by its key.

Unified Roles

  • List Unified Roles

    List the built-in user roles of Tailscale.

  • Get Unified Role

    Get a built-in Tailscale user role by ID.

Unified Users

  • List Unified Users

    List unified users in a Tailscale tailnet.

  • Get Unified User

    Get a unified Tailscale user by ID.

Keys

  • List Keys

    List the auth keys, API access tokens and trust credentials of the tailnet.

  • Get Key

    Get a key by ID.

  • Update Key

    Update an OAuth client or federated identity.

  • Delete Key

    Revoke a key.

Log Streaming Configurations

  • Get Log Streaming Configuration

    Get the destination settings of a log stream.

  • Set Log Streaming Configuration

    Set the destination for a log stream.

OAuth Apps

  • Create OAuth App

    Create an OAuth app.

  • List OAuth Apps

    List the OAuth apps of the tailnet.

  • Get OAuth App

    Get an OAuth app by ID.

  • Update OAuth App

    Replace the settings of an OAuth app.

  • Delete OAuth App

    Delete an OAuth app.

Policy Files

  • Get Policy File

    Get the tailnet policy file (ACLs).

  • Set Policy File

    Replace the tailnet policy file (ACLs).

A Posture Integrations

  • Create A Posture Integration

    Link a third-party device posture provider.

  • Get A Posture Integration

    Get a device posture integration by ID.

  • Update A Posture Integration

    Update a device posture integration.

  • Delete A Posture Integration

    Remove a device posture integration.

A Services

  • Get A Service

    Get a Tailscale Service by name.

  • Delete A Service

    Delete a Tailscale Service.

Approval Status Of Service On A Devices

  • Get Approval Status Of Service On A Device

    Get whether a device is approved to host a Service.

  • Update Approval Status Of Service On A Device

    Approve or unapprove a device to host a Service.

Tailnet Settings

  • Get Tailnet Settings

    Get the settings of the tailnet.

  • Update Tailnet Settings

    Update the settings of the tailnet.

User Invites

  • Create User Invites

    Invite users to join the Tailscale tailnet.

  • List User Invites

    List the open user invites of a Tailscale tailnet.

  • Get User Invite

    Get an open Tailscale user invite by ID.

Users

  • List Users

    List the users of a Tailscale tailnet.

  • Get User

    Get a Tailscale user by ID.

  • Delete User

    Delete a user from the Tailscale tailnet.

Other (29)

  • Create An Auth Key Or Trust Credential

    Create an auth key, OAuth client or federated identity.

  • Create Or Update Service

    Create or replace a Tailscale Service.

  • List Tailnet Devices

    List the devices in the Tailscale tailnet.

  • List Configuration Audit Logs

    List configuration audit log events for the tailnet.

  • List Network Flow Logs

    List network flow logs for the tailnet.

  • Get Log Streaming Status

    Get the delivery status of a log stream.

  • Get AWS External ID

    Get or create the AWS external ID for S3 log streaming.

  • List Posture Integrations

    List the device posture integrations of the tailnet.

  • List All Services

    List the Tailscale Services in the tailnet.

  • List Devices Hosting A Service

    List the devices that host a Tailscale Service.

  • Set Device Name

    Set the MagicDNS name of a device.

  • Set Device Tags

    Set the ACL tags on a device.

  • Update Device Key Expiry

    Turn key expiry on or off for a device.

  • Set Device IPv4 Address

    Set the Tailscale IPv4 address of a device.

  • Update User Role

    Change the role of a Tailscale user.

  • Delete A User Invite

    Delete a pending user invite.

  • Resend Verification Email

    Resend the verification email for a contact.

  • Resend A Device Invite

    Resend the email for a device share invite.

  • Accept A Device Invite

    Accept a device share invite as the calling user.

  • Expire A Device'S Key

    Expire a device's node key.

  • Authorize Device

    Authorize or deauthorize a device in the tailnet.

  • Validate AWS Trust Policy

    Check that an AWS IAM role trusts Tailscale with the external ID.

  • Disable Log Streaming

    Turn off a log stream.

  • Preview Rule Matches

    Preview which rules in a policy file match a user or IP and port.

  • Validate And Test Policy File

    Validate a policy file or run ACL tests without saving.

  • Resend A User Invite

    Resend the email for a pending user invite.

  • Suspend User

    Suspend a user from the Tailscale tailnet.

  • Restore User

    Restore a suspended Tailscale user.

  • Approve User

    Approve a Tailscale user who is waiting to join the tailnet.

Set Up Your Tailscale MCP Server in Minutes

One endpoint. Any framework. Your agent is talking to Tailscale in under 10 lines of code.

Agent Frameworks

Claude Desktop
{
  "mcpServers": {
    "stackone": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote@latest",
        "https://api.stackone.com/mcp?x-account-id=<account_id>",
        "--header",
        "Authorization: Basic <YOUR_BASE64_TOKEN>"
      ]
    }
  }
}

Check More developer MCP Servers

Wiz

696+ actions

IONOS

501+ actions

Workiva

266+ actions

KnowBe4

259+ actions

HighLevel

251+ actions

WorkOS

234+ actions

SAP Concur

232+ actions

Tailscale MCP Server FAQ

Does StackOne have a Tailscale MCP server?
Yes. StackOne offers a hosted Tailscale MCP server with 89 pre-built actions, and every action is tested and QA'd by StackOne. Connect it to Claude, Cursor, and any other MCP client, or to any agent framework through the AI Action SDK. It ships with managed agent authentication, prompt injection defense, and tool discovery with server-side execution that preserve your agent's context window and keep reasoning performance.
Tailscale MCP server vs direct API integration: what's the difference?
A Tailscale MCP server and direct API integration serve different use cases. Direct API integration is for software-to-software work, where backend code calls Tailscale. A Tailscale MCP server is for AI agents that discover and call Tailscale at runtime, such as MCP clients like Claude and Cursor, plus framework agents built with OpenAI, LangChain, or Vercel AI. StackOne provides both.
How does Tailscale authentication work for AI agents?
Tailscale authentication for AI agents works through a StackOne Connect Session. Create one via the dashboard or the SDK to get an auth link and ready-to-paste config for Claude Desktop, Cursor, and other MCP clients. Your user authenticates their own Tailscale account; StackOne handles token exchange, storage, and refresh. Credentials never reach the LLM, and each user is isolated via origin_owner_id.
Are Tailscale MCP tools vulnerable to prompt injection?
Yes. Tailscale MCP tools can be vulnerable to indirect prompt injection. Any tool that reads user-written content, such as documents, messages, tickets, records, or free-text fields, is a potential vector. StackOne Defender scans every tool response before it enters the agent's context. It runs regex patterns in ~1ms, then a MiniLM classifier in ~4ms. Accuracy is 88.7%, and it runs entirely on CPU.
What is the context bloat of a Tailscale agent and how do I avoid it?
Context bloat happens when Tailscale tool schemas and API responses eat your Tailscale agent's memory, preventing it from reasoning effectively. A single Tailscale query can return a massive JSON response, and connecting multiple tools compounds the problem. Tools Discovery reduces it by loading only the tools relevant to each query.
Can I limit which actions my Tailscale agent can access?
Yes. You can limit which actions your Tailscale agent can access directly from the StackOne dashboard. Toggle actions on or off, or restrict them to specific accounts, with no code changes to your agent. Session tokens can be scoped to exact actions so if one leaks, exposure stays contained.
Can I create custom agent actions for my Tailscale MCP server?
Yes. You can create custom agent actions for your Tailscale MCP server using Connector Builder. It's an integration agent your coding assistant (Claude Code, Cursor, or Copilot) can invoke to research Tailscale's API, generate production-ready connector YAML, test against the live API, and validate before you ship.
When should I NOT use a Tailscale MCP server?
Skip a Tailscale MCP server if your integration is purely software-to-software, because direct Tailscale API integration is simpler when no AI agent is involved. For deterministic, compliance-critical operations (financial transactions, regulatory reporting), direct API gives you predictable behavior without agent-driven decision-making. MCP shines when AI agents need to dynamically discover and call Tailscale actions at runtime.
What AI frameworks and AI clients does the StackOne Tailscale MCP server support?
The StackOne Tailscale MCP server supports both. MCP clients (paste-and-go apps): Claude Desktop, Claude Code, Cursor, VS Code, Goose. Agent frameworks (code SDKs you build with): OpenAI Agents SDK, Anthropic, Vercel AI, Google ADK, CrewAI, Pydantic AI, LangChain, LangGraph, Azure AI Foundry.

Put your AI agents to work

All the tools you need to build and scale AI agent integrations, with best-in-class connectivity, execution, and security.