4,000+ servers built on vurb.ts
Vinkius
Mastra AISDK
Mastra AI
Legito MCP Server

Bring Document Automation
to Mastra AI

Learn how to connect Legito to Mastra AI and start using 31 AI agent tools in minutes. Fully managed, enterprise secure, and ready to use without writing a single line of code.

MCP Inspector GDPR Free for Subscribers
Add User To GroupCreate Document Version DataCreate UserCreate User GroupDelete Document RecordDelete UserDelete User GroupDownload Document VersionGet Document Version DataGet InfoGet SharesGet User PermissionsList Advanced StylesList CategoriesList CountriesList CurrenciesList Document RecordsList Template SuitesList TimezonesList User GroupsList UsersRemove Share From UserRemove Share From User GroupRemove User From GroupShare With UserShare With User GroupUpdate Document RecordUpdate Document Version DataUpdate UserUpdate User GroupUpdate User Permissions

Compatible with every major AI agent and IDE

ClaudeClaude
ChatGPTChatGPT
CursorCursor
GeminiGemini
WindsurfWindsurf
VS CodeVS Code
JetBrainsJetBrains
VercelVercel
+ other MCP clients
Legito

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

  1. Subscribe to this server
  2. Enter your Legito Workspace URL, API Key, and Private Key
  3. 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_user_to_group

Add a user to a user group

create_document_version_data

Create document version data from a template suite

create_user

Create a new user

create_user_group

Create a new user group

delete_document_record

Delete a document record

delete_user

Delete a user

delete_user_group

Delete a user group

download_document_version

Download a document version

get_document_version_data

Get data for a specific document version

get_info

Get workspace info

get_shares

Get shares for a document

get_user_permissions

Get permissions for a user

list_advanced_styles

List advanced styles

list_categories

List categories (groups)

list_countries

List countries (laws)

list_currencies

List supported currencies

list_document_records

List document records

list_template_suites

List Legito template suites

list_timezones

List timezones

list_user_groups

List user groups (departments)

list_users

List users

remove_share_from_user

Remove a document share from a user

remove_share_from_user_group

Remove a document share from a user group

remove_user_from_group

Remove a user from a user group

share_with_user

Share a document with a user

share_with_user_group

Share a document with a user group

update_document_record

Update a document record

update_document_version_data

Update document version data

update_user

Update a user

update_user_group

Update a user group

update_user_permissions

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

M
See it in action

Legito in Mastra AI

AI AgentVinkius
High Security·Kill Switch·Plug and Play
Why Vinkius

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.

4,000+MCP Servers ready
<40msCold start
60%Token savings
Raw MCP
Vinkius
Server catalogFind and host yourself4,000+ managed
InfrastructureSelf-hostedSandboxed V8 isolates
Credential handlingPlaintext in configVault + runtime injection
Data loss preventionNoneConfigurable DLP policies
Kill switchNoneGlobal instant shutdown
Financial circuit breakersNonePer-server limits + alerts
Audit trailNoneEd25519 signed logs
SIEM log streamingNoneSplunk, Datadog, Webhook
HoneytokensNoneCanary alerts on leak
Custom domainsNot applicableDNS challenge verified
GDPR complianceManual effortAutomated purge + export
Enterprise Security

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.

Legito
Fully ManagedVinkius Servers
60%Token savings
High SecurityEnterprise-grade
IAMAccess control
EU AI ActCompliant
DLPData protection
V8 IsolateSandboxed
Ed25519Audit chain
<40msKill switch
Stream every event to Splunk, Datadog, or your own webhook in real-time

* 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

The Vinkius Advantage

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.

< 40msCold start
Ed25519Signed audit chain
60%Token savings
FAQ

Frequently asked questions

01

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.

02

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.

03

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.

04

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.

05

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.

06

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.

07

createMCPClient not exported

Install: npm install @mastra/mcp

Explore More MCP Servers

View all →