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.
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
{
"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>"
]
}
}
}Platform Resources
Comparing BM25, TF-IDF, and Hybrid Search for MCP Tool Discovery
Benchmarking BM25, TF-IDF, and hybrid search for MCP tool discovery across 916 tools. The 80/20 TF-IDF/BM25 hybrid hits 21% Top-1 accuracy in under 1ms.
10 min
Indirect Prompt Injection Defense for MCP Tools: A Technical Guide
MCP tools that read emails, CRM records, and tickets are indirect prompt injection vectors. Here's how we built a two-tier defense that scans tool results in ~11ms.
12 min
MCP vs A2A: Architecture, Security, and When to Use Each
MCP vs A2A: what each protocol standardizes, how they differ, their shared security risks including indirect prompt injection, and when to use one, both, or a hybrid architecture.
12 min
MCP vs API: What Hundreds of Connector Builds Taught Us
MCP wraps APIs, it doesn't replace them. After building hundreds of connectors that serve both, here's when each approach wins.
14 min read
Tailscale MCP Server FAQ
Does StackOne have a Tailscale MCP server?
Tailscale MCP server vs direct API integration: what's the difference?
How does Tailscale authentication work for AI agents?
origin_owner_id.Are Tailscale MCP tools vulnerable to prompt injection?
What is the context bloat of a Tailscale agent and how do I avoid it?
Can I limit which actions my Tailscale agent can access?
Can I create custom agent actions for my Tailscale MCP server?
When should I NOT use a Tailscale MCP server?
What AI frameworks and AI clients does the StackOne Tailscale MCP server support?
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.