LastPass MCP Server
for AI Agents
Connect your AI agent to StackOne's LastPass MCP server and give it 34 MCP tools out of the box. Auth, tool execution, and security all managed.
Coverage
34 Agent Actions
Create, read, update, and delete across LastPass — and extend your agent's capabilities with custom actions.
Authentication
Agent Tool Authentication
Per-user OAuth in one call. Your LastPass MCP server gets session-scoped tokens with zero credentials stored on your infra.
Agent Auth →Security
Agent Protection
Every LastPass tool response scanned for prompt injection in milliseconds — 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 LastPass call.
Tools Discovery →What is the LastPass MCP Server?
A LastPass MCP server lets AI agents read and write LastPass data through the Model Context Protocol — Anthropic's open standard for connecting LLMs to external tools. StackOne's LastPass MCP server ships with 34 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 LastPass MCP Tools
Every action from LastPass's API, ready for your agent. Create, read, update, and delete — scoped to exactly what you need.
Groups
- List Groups
Retrieve all groups and their members from the LastPass Business account
- Get Group
Retrieve a specific group and its members from the LastPass Business account
Unified Groups
- List Unified Groups
List unified groups in LastPass.
- Get Unified Group
Get a unified LastPass group by ID.
Unified Organizations
- List Unified Organizations
List unified organizations in LastPass.
- Get Unified Organization
Get a unified LastPass organization by ID.
Unified Roles
- List Unified Roles
List unified roles in LastPass.
- Get Unified Role
Get a unified LastPass role by ID.
Unified Users
- List Unified Users
List unified users in LastPass.
- Get Unified User
Get a unified LastPass user by ID.
Roles
- List Roles
Retrieve shared folder data containing role permission sets from the LastPass Business account
- Get Role
Retrieve shared folder data to look up a specific role by ID
Users
- Batch Add Users
Bulk-create one or more LastPass Business users by POSTing an array of user objects to the Enterprise API batchadd command at /enterpriseapi.php, triggering activation emails for each newly provisioned account.
- Update User
Update attributes for an existing user in the LastPass Business account
- Delete User
Deactivate, remove, or permanently delete a user from the LastPass Business account via the deluser command, with the severity of the action controlled by the required deleteaction parameter (0 = deactivate, 1 = remove from enterprise, 2 = permanent delete).
Other (19)
- Get Event Report
Retrieve audit event logs from the LastPass Business account
- Get Unified Credentials
Get the current LastPass connection's unified credentials and identity.
- List Unified Resource Users
List unified resource users in LastPass.
- List Unified Resource Types
List unified resource types in LastPass.
- List Policies
Retrieve shared folder data containing permission sets from the LastPass Business account
- Get Policy
Retrieve shared folder data to look up a specific policy by ID
- Get Shared Folder Data
Retrieve a list of all shared folders in the LastPass Business account
- Get Detailed Shared Folder Data
Retrieve detailed information about all shared folders including sites and permissions
- Get User Data
Retrieve detailed account data for users in the LastPass Business account via the getuserdata command, with optional filtering by username, admin status, or disabled status and pagination support for large directories.
- Batch Change Group Membership
Add or remove users from groups in bulk
- Update User Email
Update a user's primary email address in the LastPass Business account via the Enterprise API updateemail command, triggering a confirmation email to the new address.
- Push Sites To Users
Distribute credential entries (sites) to users in the LastPass Business account
- Bulk Delete Users
Delete multiple users from the LastPass Business account in a single call
- Disable User
Deactivate a user account while preserving their vault data
- Enable User
Re-enable a previously disabled user account
- Reinvite User
Resend an invitation email to a user who has not yet accepted
- Disable Multifactor Authentication
Disable multifactor authentication for a user
- Reset Password
Send a master password reset email to a user
- Require Master Password Change
Require a user to change their master password on next login via the LastPass Enterprise API requiremasterpasswordchange command.
Set Up Your LastPass MCP Server in Minutes
One endpoint. Any framework. Your agent is talking to LastPass 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>"
]
}
}
}Check More Security MCP Servers
150+ actions
110+ actions
78+ actions
76+ actions
69+ actions
68+ actions
64+ actions
Platform Resources
MCP Code Mode: Keeping Tool Responses Out of Agent Context
Anthropic's code_execution processes data already in context. Custom MCP code mode keeps raw tool responses in a sandbox. 14K tokens vs 500.
11 min
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 200+ Connector Builds Taught Us
MCP wraps APIs, it doesn't replace them. After building 200+ connectors that serve both, here's when each approach wins.
14 min read
LastPass MCP Server FAQ
Does StackOne have a LastPass MCP server?
LastPass MCP server vs direct API integration — what's the difference?
How does LastPass authentication work for AI agents?
origin_owner_id.Are LastPass MCP tools vulnerable to prompt injection?
What is the context bloat of a LastPass agent and how do I avoid it?
Can I limit which actions my LastPass agent can access?
Can I create custom agent actions for my LastPass MCP server?
When should I NOT use a LastPass MCP server?
What AI frameworks and AI clients does the StackOne LastPass 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.