4,000+ servers built on MCP Fusion
Vinkius
Mastra AISDK
Mastra AI
Why use Spellbook Legal AI MCP Server with Mastra AI?

Bring Contract Drafting
to Mastra AI

Create your Vinkius account to connect Spellbook Legal AI to Mastra AI and start using all 13 AI tools in minutes. Fully managed, enterprise secure, and ready to use without writing a single line of code. No hosting, no server setup — just connect and start using.

MCP Inspector GDPR Free for Subscribers
Analyze Spellbook ContractCheck Spellbook PlaybookCompare Spellbook ContractsDraft Spellbook ClauseGet Spellbook Clause SuggestionsGet Spellbook DocumentGet Spellbook Market ComparisonGet Spellbook Risk AssessmentList Spellbook DocumentsSearch Spellbook Clause LibrarySearch Spellbook DocumentsSummarize Spellbook ContractUpload Spellbook Document
ChatGPT Claude Perplexity

Compatible with every major AI agent and IDE

ClaudeClaude
ChatGPTChatGPT
CursorCursor
GeminiGemini
WindsurfWindsurf
VS CodeVS Code
JetBrainsJetBrains
VercelVercel
+ other MCP clients
Spellbook Legal AI

What is the Spellbook Legal AI MCP Server?

Connect to Spellbook Legal AI and bring AI-powered contract drafting, review, and analysis to any AI agent. Trusted by 4,000+ in-house teams and law firms worldwide, Spellbook helps transactional lawyers draft and review contracts faster and more accurately.

What you can do

  • Contract Analysis — AI-powered review of contracts identifying risks, missing clauses, non-standard terms, and issues
  • Clause Suggestions — Get AI-generated clause suggestions based on market standards and best practices
  • Contract Comparison — Compare two contract versions to identify additions, deletions, and modifications
  • Market Comparison — Compare contract terms against 2,000+ market precedents showing pro-buyer, pro-seller, and market-standard positions
  • AI Clause Drafting — Generate AI-drafted clauses based on specified requirements, jurisdiction, and party position
  • Contract Summarization — Generate concise summaries highlighting key terms, obligations, and risks
  • Risk Assessment — Get comprehensive risk assessments with high, medium, and low risk issues and remediations
  • Playbook Compliance — Check contracts against company playbooks to identify deviations from standards
  • Clause Library Search — Search Spellbook's extensive clause library for standard, market-tested clauses
  • Document Management — Upload, list, and search contract documents with filtering by status and type

How it works

  1. Subscribe to this server
  2. Enter your Spellbook API key (available in Spellbook account settings)
  3. Start drafting and reviewing contracts from Claude, Cursor, or any MCP-compatible client

Your AI becomes a transactional legal assistant, helping you draft clauses, review contracts, identify risks, and ensure market-standard terms.

Who is this for?

  • Transactional Lawyers — draft and review contracts with AI-powered clause suggestions and market comparisons
  • In-House Legal Teams — review vendor and customer contracts against company playbooks and standards
  • Contract Managers — analyze contracts for risks, track changes between versions, and manage document libraries
  • Legal Operations — automate contract review workflows and ensure consistent clause usage
  • Law Students — practice contract drafting and learn market-standard clause positions

Built-in capabilities (13)

analyze_spellbook_contract

USE WHEN: - User wants to review a contract for risks - User needs to identify issues in a contract - User asks to "analyze this contract" or "review for risks" PARAMETERS: - document_id (REQUIRED): ID of the document to analyze - analysis_type (OPTIONAL): Type of analysis — "full" (default), "risks_only", "clause_check", "market_comparison" EXAMPLES: - "Analyze document 123 for risks" → call with document_id="123" - "Review this contract for issues" → call with document_id="123", analysis_type="full" - "Check clauses in document 456" → call with document_id="456", analysis_type="clause_check" Analyze a contract document for risks, issues, and suggestions

check_spellbook_playbook

Check contract compliance against a playbook

compare_spellbook_contracts

USE WHEN: - User wants to compare two versions of a contract - User needs to identify changes between drafts - User asks to "compare these contracts" or "show differences" PARAMETERS: - document_id_1 (REQUIRED): ID of the first document - document_id_2 (REQUIRED): ID of the second document - comparison_type (OPTIONAL): Type of comparison — "full" (default), "clauses_only", "risk_comparison" EXAMPLES: - "Compare documents 123 and 456" → call with document_id_1="123", document_id_2="456" - "Show differences between contract versions" → call with document_id_1="123", document_id_2="456", comparison_type="full" Compare two contract versions to identify differences

draft_spellbook_clause

USE WHEN: - User needs to draft a new clause for a contract - User wants AI to generate standard clause language - User asks to "draft a limitation of liability clause" or "write an indemnification clause" PARAMETERS: - clause_type (REQUIRED): Type of clause to draft (e.g. "Limitation of Liability", "Indemnification", "Confidentiality") - party_position (OPTIONAL): Which party position to draft for — "neutral" (default), "pro-buyer", "pro-seller", "pro-vendor" - jurisdiction (OPTIONAL): Jurisdiction for the clause (e.g. "New York", "Delaware", "California", "UK") - custom_instructions (OPTIONAL): Additional instructions or requirements for the clause EXAMPLES: - "Draft a limitation of liability clause" → call with clause_type="Limitation of Liability" - "Draft a pro-buyer indemnification clause for New York" → call with clause_type="Indemnification", party_position="pro-buyer", jurisdiction="New York" - "Write a confidentiality clause with custom instructions" → call with clause_type="Confidentiality", custom_instructions="Include data breach notification requirements" Draft a contract clause using Spellbook AI

get_spellbook_clause_suggestions

Get AI clause suggestions for a contract document

get_spellbook_document

Get detailed information for a specific contract document

get_spellbook_market_comparison

Shows pro-buyer, pro-seller, and market-standard positions. Get market comparison data for a specific clause type

get_spellbook_risk_assessment

Get a detailed risk assessment for a contract document

list_spellbook_documents

Supports filtering by status, document type, and date range. USE WHEN: - User wants to see all their contract documents - User needs to find contracts by status or type - User is exploring their document library - User asks "what contracts do I have" or "list my documents" PARAMETERS: - status (OPTIONAL): Filter by document status (e.g. "Draft", "In Review", "Finalized") - document_type (OPTIONAL): Filter by document type (e.g. "NDA", "MSA", "SOW", "Employment Agreement") - date_from (OPTIONAL): Start date filter (YYYY-MM-DD) - date_to (OPTIONAL): End date filter (YYYY-MM-DD) - page (OPTIONAL): Page number for pagination - page_size (OPTIONAL): Results per page (default: 25, max: 100) EXAMPLES: - "List all my contract documents" → call with no params - "Show contracts in review" → call with status="In Review" - "List NDAs" → call with document_type="NDA" List all contract documents in Spellbook

search_spellbook_clause_library

Search the Spellbook clause library for standard clauses

search_spellbook_documents

Search contract documents by keyword

summarize_spellbook_contract

Generate an AI summary of a contract document

upload_spellbook_document

USE WHEN: - User wants to upload a new contract for review - User needs to analyze a contract received from another party - User asks to "upload this contract" or "analyze this document" PARAMETERS: - file_name (REQUIRED): Name of the document file - file_content (REQUIRED): Base64-encoded file content or document text - document_type (OPTIONAL): Type of document (e.g. "NDA", "MSA", "SOW") EXAMPLES: - "Upload this NDA for review" → call with file_name="NDA.pdf", file_content="[base64 content]", document_type="NDA" - "Analyze this MSA contract" → call with file_name="MSA.docx", file_content="[base64 content]", document_type="MSA" Upload a contract document to Spellbook for analysis

Why Mastra AI?

Mastra's agent abstraction provides a clean separation between LLM logic and Spellbook Legal AI tool infrastructure. Connect 13 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 Spellbook Legal AI 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 Spellbook Legal AI 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

Spellbook Legal AI in Mastra AI

AI AgentVinkius
High Security·Kill Switch·Plug and Play
Enterprise Security

Why run Spellbook Legal AI with Vinkius?

The Spellbook Legal AI connection runs on our fully managed, secure cloud infrastructure. We handle the hosting, maintenance, and security so you don't have to deal with servers or code. All 13 tools are ready to work instantly without any complex setup.

You stay in complete control of your data. Your AI only accesses the information you approve, keeping your sensitive passwords and private details completely safe. Plus, with automatic optimizations, your AI works faster and more efficiently.

Spellbook Legal AI
Fully ManagedNo server setup
Plug & PlayNo coding needed
SecurePrivacy protected
PrivateYour data is safe
Cost ControlBudget limits
Control1-click disconnect
Auto-UpdatesMaintenance free
High SpeedOptimized for AI
Reliable99.9% uptime
Your credentials and connection tokens are fully encrypted

* Every connection is hosted and maintained by Vinkius. We handle the security, updates, and infrastructure so you don't have to write code or manage servers. See our infrastructure

01 / Catalog

Over 4,000 integrations ready for AI agents

Explore a vast library of pre-built integrations, optimized and ready to deploy.

02 / Credentials

Connect securely in under 30 seconds

Generate tokens to authenticate and link external services in a single step.

03 / Guardian

Complete visibility into every agent action

Audit live requests, latency, success rates, and active security compliance policies.

04 / FinOps

Optimize spending and track token ROI

Analyze real-time token consumption and cost metrics detailed by connection.

Over 4,000 integrations ready for AI agents
Connect securely in under 30 seconds
Complete visibility into every agent action
Optimize spending and track token ROI

Explore our live AI Agents Analytics dashboard to see it all working

This dashboard is included when you connect Spellbook Legal AI using Vinkius. You will never be left in the dark about what your AI agents are doing with your tools.

Why Vinkius

Spellbook Legal AI and 4,000+ other AI tools. No hosting, no code, ready to use.

Professionals who connect Spellbook Legal AI to Mastra AI through Vinkius don't need to write code, manage servers, or worry about security. Everything is pre-configured, secure, and runs automatically in the background.

4,000+MCP Integrations
<40msResponse time
100%Fully managed
Raw MCP
Vinkius
Ready-to-use MCPsFind and configure each manually4,000+ MCPs ready to use
Connection SetupManual coding & server setup1-click instant connection
Server HostingYou host it yourself (needs 24/7 uptime)100% hosted & managed by Vinkius
Security & PrivacyStored in plaintext config filesBank-grade encrypted vault
Activity VisibilityBlind execution (no logs or tracking)Live dashboard with real-time logs
Cost ControlRunaway AI token spend riskAutomatic budget limits
Revoking AccessMust delete files or code to stop1-click disconnect button
The Vinkius Advantage

How Vinkius secures Spellbook Legal AI for Mastra AI

Every request between Mastra AI and Spellbook Legal AI is protected by our secure gateway. We automatically keep your sensitive data private, prevent unauthorized access, and let you disconnect instantly at any time.

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

Frequently asked questions

01

What types of contracts can Spellbook analyze?

Spellbook can analyze a wide range of commercial contracts including NDAs, MSAs, SOWs, employment agreements, vendor agreements, customer contracts, licensing agreements, real estate contracts, and more. The AI is trained on thousands of market precedents and can identify risks, non-standard terms, and missing clauses across all common commercial contract types.

02

How does the market comparison feature work?

The market comparison feature compares your contract clauses against 2,000+ market precedents to show how your terms compare to market standards. It shows pro-buyer, pro-seller, and market-standard positions for each clause type, helping you understand whether your terms are favorable, aggressive, or in line with market norms.

03

How do I get a Spellbook API key?

Visit Spellbook.legal and sign up for an account. Navigate to Settings → Integrations or API Settings in your account dashboard to generate an API key. The key gives you access to contract analysis, clause drafting, risk detection, and market comparison features. Contact Spellbook support if you need help setting up API access.

04

Can Spellbook draft custom clauses for specific jurisdictions?

Yes! When drafting clauses with draft_spellbook_clause, you can specify the jurisdiction (e.g. New York, Delaware, California, UK, EU), party position (pro-buyer, pro-seller, neutral), and custom instructions. The AI generates clauses tailored to the specified jurisdiction's legal requirements and your preferred negotiating position.

05

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.

06

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.

07

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.

08

createMCPClient not exported

Install: npm install @mastra/mcp

Explore More MCP Servers

View all →