Compatible with every major AI agent and IDE
What is the Legito MCP Server?
Connect your Legito workspace to any AI agent to streamline your legal and document automation workflows through natural conversation.
What you can do
- Document Management — List document records, retrieve specific version data, and track document shares across your organization.
- Template Control — Access and list available template suites and categories to quickly identify the right starting point for new contracts.
- User & Group Administration — Manage user groups, list active users, and inspect detailed permissions to ensure secure access control.
- Global Configuration — Query workspace info, supported currencies, timezones, and country-specific legal settings.
- Instant Downloads — Generate and download document versions in formats like PDF or DOCX directly through your agent.
How it works
- Subscribe to this server
- Enter your Legito Workspace URL, API Key, and Private Key
- Start managing your document automation from Claude, Cursor, or any MCP-compatible client
Who is this for?
- Legal Teams — instantly find document records and check sharing statuses without leaving your research flow
- Operations Managers — automate the retrieval of template suites and manage user group access efficiently
- HR & Admin — quickly download generated document versions and verify user permissions during onboarding
Built-in capabilities (31)
Add a user to a user group
Create document version data from a template suite
Create a new user
Create a new user group
Delete a document record
Delete a user
Delete a user group
Download a document version
Get data for a specific document version
Get workspace info
Get shares for a document
Get permissions for a user
List advanced styles
List categories (groups)
List countries (laws)
List supported currencies
List document records
List Legito template suites
List timezones
List user groups (departments)
List users
Remove a document share from a user
Remove a document share from a user group
Remove a user from a user group
Share a document with a user
Share a document with a user group
Update a document record
Update document version data
Update a user
Update a user group
Update permissions for a user
Why Mastra AI?
Mastra's agent abstraction provides a clean separation between LLM logic and Legito tool infrastructure. Connect 31 tools through Vinkius and use Mastra's built-in workflow engine to chain tool calls with conditional logic, retries, and parallel execution. deployable to any Node.js host in one command.
- —
Mastra's agent abstraction provides a clean separation between LLM logic and tool infrastructure. add Legito without touching business code
- —
Built-in workflow engine chains MCP tool calls with conditional logic, retries, and parallel execution for complex automation
- —
TypeScript-native: full type inference for every Legito tool response with IDE autocomplete and compile-time checks
- —
One-command deployment to any Node.js host. Vercel, Railway, Fly.io, or your own infrastructure
Legito in Mastra AI
Legito and 4,000+ other MCP servers. One platform. One governance layer.
Teams that connect Legito to Mastra AI through Vinkius don't need to source, host, or maintain individual MCP servers. Every tool call runs inside a hardened runtime with credential isolation, DLP, and a signed audit chain.
Raw MCP | Vinkius | |
|---|---|---|
| Server catalog | Find and host yourself | 4,000+ managed |
| Infrastructure | Self-hosted | Sandboxed V8 isolates |
| Credential handling | Plaintext in config | Vault + runtime injection |
| Data loss prevention | None | Configurable DLP policies |
| Kill switch | None | Global instant shutdown |
| Financial circuit breakers | None | Per-server limits + alerts |
| Audit trail | None | Ed25519 signed logs |
| SIEM log streaming | None | Splunk, Datadog, Webhook |
| Honeytokens | None | Canary alerts on leak |
| Custom domains | Not applicable | DNS challenge verified |
| GDPR compliance | Manual effort | Automated purge + export |
Why teams choose Vinkius for Legito in Mastra AI
The Legito MCP Server runs on Vinkius-managed infrastructure inside AWS — a purpose-built runtime with per-request V8 isolates, Ed25519 signed audit chains, and sub-40ms cold starts. All 31 tools execute in hardened sandboxes optimized for native MCP execution.
Your AI agents in Mastra AI only access the data you authorize, with DLP that blocks sensitive information from ever reaching the model, kill switch for instant shutdown, and up to 60% token savings. Enterprise-grade infrastructure, zero maintenance.

* Every MCP server runs on Vinkius-managed infrastructure inside AWS - a purpose-built runtime with per-request V8 isolates, Ed25519 signed audit chains, and sub-40ms cold starts optimized for native MCP execution. See our infrastructure
How Vinkius secures
Legito for Mastra AI
Every tool call from Mastra AI to the Legito MCP Server is protected by DLP redaction, cryptographic audit chains, V8 sandbox isolation, kill switch, and financial circuit breakers.
Frequently asked questions
Can I download a specific document version in PDF format?
Yes! Use the download_document_version tool by providing the document code and specifying 'pdf' as the format. Your agent will retrieve the download link or data immediately.
How do I see all available template suites in my workspace?
Simply ask the agent to run the list_template_suites action. It will return a complete list of all template suites configured in your Legito environment.
Is it possible to check what permissions a specific user has?
Yes. By using the get_user_permissions tool with a user's identifier, the agent can retrieve the exact permission set assigned to that user in the workspace.
How does Mastra AI connect to MCP servers?
Create an MCPClient with the server URL and pass it to your agent. Mastra discovers all tools and makes them available with full TypeScript types.
Can Mastra agents use tools from multiple servers?
Yes. Pass multiple MCP clients to the agent constructor. Mastra merges all tool schemas and the agent can call any tool from any server.
Does Mastra support workflow orchestration?
Yes. Mastra has a built-in workflow engine that lets you chain MCP tool calls with branching logic, error handling, and parallel execution.
createMCPClient not exported
Install: npm install @mastra/mcp
Explore More MCP Servers
View all →
Dialpad
10 toolsEquip your AI agent to send office SMS, manage team contacts, and monitor call logs via the Dialpad API.

Memberstack
10 toolsMember authentication and user management via Memberstack — manage members, plans, and custom fields.

Aikido Security
16 toolsQuery security vulnerabilities via Aikido — list open issues, check repositories, monitor cloud assets, and track compliance directly from any AI agent.

Gelato
12 toolsManage print-on-demand orders, track fulfillment, and get shipping quotes via AI agents with Gelato.
