Twingate MCP Server
for AI Agents
Connect your AI agent to StackOne's Twingate 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 Twingate. Extend your agent's capabilities with custom actions.
Authentication
Agent Tool Authentication
Per-user OAuth in one call. Your Twingate MCP server gets session-scoped tokens with zero credentials stored on your infra.
Agent Auth →Security
Agent Protection
Every Twingate 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 Twingate call.
Tools Discovery →What is the Twingate MCP Server?
A Twingate MCP server lets AI agents read and write Twingate data through the Model Context Protocol, Anthropic's open standard for connecting LLMs to external tools. StackOne's Twingate 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 Twingate MCP Tools
Every StackOne action for Twingate, ready for your agent. Read, write and delete, scoped to exactly what you need.
Access Requests
- List Access Requests
List requests from users for access to Twingate Resources.
- Get Access Request
Get one Twingate access request by ID.
SSH Certificate Authoritys
- Create SSH Certificate Authority
Register an SSH certificate authority in Twingate.
- Delete SSH Certificate Authority
Delete a Twingate SSH certificate authority.
X.509 Certificate Authoritys
- Create X.509 Certificate Authority
Register an X.509 certificate authority in Twingate.
- Delete X.509 Certificate Authority
Delete a Twingate X.509 certificate authority.
Connectors
- Create Connector
Register a new Connector in a Twingate Remote Network.
- List Connectors
List the Connectors of a Twingate network.
- Get Connector
Get one Twingate Connector by ID.
- Update Connector
Rename a Twingate Connector or change its status notifications.
- Delete Connector
Delete a Twingate Connector.
Devices
- List Devices
List the devices that have signed in to a Twingate network.
- Get Device
Get one Twingate device by ID.
- Update Device
Manually trust or untrust a Twingate device.
DNS Filtering Profiles
- Create DNS Filtering Profile
Create a DNS filtering profile in Twingate.
- List DNS Filtering Profiles
List the DNS filtering profiles of a Twingate network.
- Get DNS Filtering Profile
Get one Twingate DNS filtering profile by ID.
- Update DNS Filtering Profile
Change the domains, categories, groups or priority of a Twingate DNS filtering profile.
- Delete DNS Filtering Profile
Delete a Twingate DNS filtering profile.
Gateways
- Create Gateway
Create a Twingate Gateway for SSH, Kubernetes or web app Resources.
- List Gateways
List the Gateways of a Twingate network.
- Get Gateway
Get one Twingate Gateway by ID.
- Update Gateway
Change the address, Remote Network or certificate authorities of a Twingate Gateway.
- Delete Gateway
Delete a Twingate Gateway.
Groups
- Create Group
Create a manual group in a Twingate network.
- List Groups
List the groups of a Twingate network.
- Get Group
Get one Twingate group by ID.
- Update Group
Rename a Twingate group or add and remove its users and Resources.
- Delete Group
Delete a Twingate group.
Unified Groups
- List Unified Groups
List unified groups in a Twingate network.
- Get Unified Group
Get a unified Twingate group by ID.
Unified Roles
- List Unified Roles
List the Admin Console roles of Twingate.
- Get Unified Role
Get a unified Twingate role by ID.
Unified Users
- List Unified Users
List unified users in a Twingate network.
- Get Unified User
Get a unified Twingate user by ID.
Remote Networks
- Create Remote Network
Create a Remote Network in Twingate.
- List Remote Networks
List the Remote Networks of a Twingate network.
- Get Remote Network
Get one Twingate Remote Network by ID or exact name.
- Update Remote Network
Rename, relocate, enable or disable a Twingate Remote Network.
- Delete Remote Network
Delete a Twingate Remote Network.
Resources
- Create Resource
Create a network Resource in Twingate.
- List Resources
List the Resources of a Twingate network.
- Get Resource
Get one Twingate Resource by ID.
- Update Resource
Change the settings of a Twingate network Resource.
- Delete Resource
Delete a Twingate Resource.
Resource Access
- Add Resource Access
Grant groups or service accounts access to a Twingate Resource.
- Get Resource Access
List the groups and service accounts that can reach a Twingate Resource.
- Set Resource Access
Replace the full access list of a Twingate Resource.
- Remove Resource Access
Remove groups or service accounts from the access list of a Twingate Resource.
Kubernetes Resources
- Create Kubernetes Resource
Create a Kubernetes cluster Resource reached through a Twingate Gateway.
- Update Kubernetes Resource
Change the settings of a Twingate Kubernetes Resource.
SSH Resources
- Create SSH Resource
Create an SSH server Resource reached through a Twingate Gateway.
- Update SSH Resource
Change the settings of a Twingate SSH Resource.
Web App Resources
- Create Web App Resource
Create a web application Resource reached through a Twingate Gateway.
- Update Web App Resource
Change the settings of a Twingate web app Resource.
Security Policys
- Get Security Policy
Get one Twingate security policy by ID or exact name.
- Update Security Policy
Change which groups a Twingate security policy applies to.
Serial Numbers
- Create Serial Numbers
Add device serial numbers to the Twingate trusted list.
- List Serial Numbers
List the trusted device serial numbers of a Twingate network.
- Delete Serial Numbers
Remove device serial numbers from the Twingate trusted list.
Service Account Keys
- Create Service Account Key
Issue a new key for a Twingate service account.
- Get Service Account Key
Get one Twingate service account key by ID or exact name.
- Update Service Account Key
Rename a Twingate service account key.
- Delete Service Account Key
Delete a Twingate service account key.
Service Accounts
- Create Service Account
Create a Twingate service account.
- List Service Accounts
List the service accounts of a Twingate network.
- Get Service Account
Get one Twingate service account by ID.
- Update Service Account
Rename a Twingate service account or change its Resources.
- Delete Service Account
Delete a Twingate service account.
Users
- Create User
Add a user to a Twingate network.
- List Users
List the users of a Twingate network.
- Get User
Get one Twingate user by ID.
- Delete User
Delete a Twingate user.
Other (16)
- List Certificate Authorities
List the X.509 and SSH certificate authorities of a Twingate network.
- Get Certificate Authority
Get one Twingate certificate authority by ID.
- Get Device Posture
Get the security posture checks of a Twingate device.
- List Security Policies
List the security policies of a Twingate network.
- Get Events Sync OIDC Provider URL
Get the OIDC provider URL used to sync Twingate network events to Amazon S3.
- Update User Details
Change the name or state of a Twingate user.
- Update User Role
Change the Admin Console role of a Twingate user.
- Approve Access Request
Approve a pending Twingate access request.
- Reject Access Request
Reject a pending Twingate access request.
- Generate Connector Tokens
Generate the tokens used to deploy a Twingate Connector.
- Block Device
Block a Twingate device from connecting.
- Unblock Device
Unblock a blocked Twingate device.
- Archive Device
Archive a Twingate device.
- Unarchive Device
Restore an archived Twingate device.
- Revoke Service Account Key
Revoke a Twingate service account key.
- Reset User MFA
Reset the Twingate multi-factor authentication of a user.
Set Up Your Twingate MCP Server in Minutes
One endpoint. Any framework. Your agent is talking to Twingate 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
Twingate MCP Server FAQ
Does StackOne have a Twingate MCP server?
Twingate MCP server vs direct API integration: what's the difference?
How does Twingate authentication work for AI agents?
origin_owner_id.Are Twingate MCP tools vulnerable to prompt injection?
What is the context bloat of a Twingate agent and how do I avoid it?
Can I limit which actions my Twingate agent can access?
Can I create custom agent actions for my Twingate MCP server?
When should I NOT use a Twingate MCP server?
What AI frameworks and AI clients does the StackOne Twingate 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.