2,500+ MCP servers ready to use
Vinkius

MyCase Legal MCP Server for Vercel AI SDK 16 tools — connect in under 2 minutes

Built by Vinkius GDPR 16 Tools SDK

The Vercel AI SDK is the TypeScript toolkit for building AI-powered applications. Connect MyCase Legal through Vinkius and every tool is available as a typed function. ready for React Server Components, API routes, or any Node.js backend.

Vinkius supports streamable HTTP and SSE.

typescript
import { createMCPClient } from "@ai-sdk/mcp";
import { generateText } from "ai";
import { openai } from "@ai-sdk/openai";

async function main() {
  const mcpClient = await createMCPClient({
    transport: {
      type: "http",
      // Your Vinkius token. get it at cloud.vinkius.com
      url: "https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp",
    },
  });

  try {
    const tools = await mcpClient.tools();
    const { text } = await generateText({
      model: openai("gpt-4o"),
      tools,
      prompt: "Using MyCase Legal, list all available capabilities.",
    });
    console.log(text);
  } finally {
    await mcpClient.close();
  }
}

main();
MyCase Legal
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

About MyCase Legal MCP Server

Connect to MyCase legal practice management platform and manage your entire law practice from any AI agent. Access cases/matters, clients, documents, time entries, calendar events, invoices, and payments—all through a unified API.

The Vercel AI SDK gives every MyCase Legal tool full TypeScript type inference, IDE autocomplete, and compile-time error checking. Connect 16 tools through Vinkius and stream results progressively to React, Svelte, or Vue components. works on Edge Functions, Cloudflare Workers, and any Node.js runtime.

What you can do

  • Matters/Cases — List, search, create, and update legal cases with status, practice area, and client info
  • Contacts/Clients — Manage your client database including name, email, phone, and address
  • Client Portfolio — View all cases associated with a specific client
  • Documents — Access case documents, filings, correspondence, and evidence
  • Time Tracking — Log billable and non-billable time entries against any case
  • Calendar — View court dates, hearings, deadlines, and meetings
  • Invoices — List and review invoices with amounts, status, and line items
  • Payments — Track payments received from clients
  • Search — Search cases by keyword across titles, client names, and descriptions

The MyCase Legal MCP Server exposes 16 tools through the Vinkius. Connect it to Vercel AI SDK in under two minutes — no API keys to rotate, no infrastructure to provision, no vendor lock-in. Your configuration, your data, your control.

How to Connect MyCase Legal to Vercel AI SDK via MCP

Follow these steps to integrate the MyCase Legal MCP Server with Vercel AI SDK.

01

Install dependencies

Run npm install @ai-sdk/mcp ai @ai-sdk/openai

02

Replace the token

Replace [YOUR_TOKEN_HERE] with your Vinkius token

03

Run the script

Save to agent.ts and run with npx tsx agent.ts

04

Explore tools

The SDK discovers 16 tools from MyCase Legal and passes them to the LLM

Why Use Vercel AI SDK with the MyCase Legal MCP Server

Vercel AI SDK provides unique advantages when paired with MyCase Legal through the Model Context Protocol.

01

TypeScript-first: every MCP tool gets full type inference, IDE autocomplete, and compile-time error checking out of the box

02

Framework-agnostic core works with Next.js, Nuxt, SvelteKit, or any Node.js runtime. same MyCase Legal integration everywhere

03

Built-in streaming UI primitives let you display MyCase Legal tool results progressively in React, Svelte, or Vue components

04

Edge-compatible: the AI SDK runs on Vercel Edge Functions, Cloudflare Workers, and other edge runtimes for minimal latency

MyCase Legal + Vercel AI SDK Use Cases

Practical scenarios where Vercel AI SDK combined with the MyCase Legal MCP Server delivers measurable value.

01

AI-powered web apps: build dashboards that query MyCase Legal in real-time and stream results to the UI with zero loading states

02

API backends: create serverless endpoints that orchestrate MyCase Legal tools and return structured JSON responses to any frontend

03

Chatbots with tool use: embed MyCase Legal capabilities into conversational interfaces with streaming responses and tool call visibility

04

Internal tools: build admin panels where team members interact with MyCase Legal through natural language queries

MyCase Legal MCP Tools for Vercel AI SDK (16)

These 16 tools become available when you connect MyCase Legal to Vercel AI SDK via MCP:

01

create_mycase_contact

USE WHEN: - User wants to add a new client - User needs to create a new contact record - User asks to "add a new client" or "create a contact" PARAMETERS: - given_name (REQUIRED): Client's first name - family_name (REQUIRED): Client's last name - email (OPTIONAL): Client's email address - phone (OPTIONAL): Client's phone number - type (OPTIONAL): Contact type — "client" (default), "opposing_party", "witness", "other" EXAMPLES: - "Add a new client John Smith" → call with given_name="John", family_name="Smith" - "Create contact for opposing party Jane Doe, jane@example.com" → call with given_name="Jane", family_name="Doe", email="jane@example.com", type="opposing_party" Create a new contact/client in MyCase

02

create_mycase_matter

USE WHEN: - User wants to open a new legal case - User needs to create a new matter for a client - User asks to "create a new case" or "open a matter" PARAMETERS: - title (REQUIRED): Matter/case title - client_id (REQUIRED): ID of the client this matter belongs to - status (OPTIONAL): Initial status — "open" (default), "closed", "archived", "on_hold" - practice_area (OPTIONAL): Practice area (e.g. "Family Law", "Criminal Defense") - description (OPTIONAL): Matter description/notes EXAMPLES: - "Create a new case for client 123 titled 'Smith Divorce'" → call with title="Smith Divorce", client_id="123" - "Open a new criminal defense matter for client 456" → call with title="State v. Johnson", client_id="456", practice_area="Criminal Defense" Create a new case/matter in MyCase

03

create_mycase_time_entry

USE WHEN: - User wants to log time spent on a case - User needs to record billable hours - User asks to "add time entry" or "log hours" PARAMETERS: - matter_id (REQUIRED): Matter/case ID this time entry belongs to - description (REQUIRED): Description of the work performed - duration_minutes (REQUIRED): Duration in minutes - billable (OPTIONAL): Whether this is billable — true (default) or false - rate (OPTIONAL): Hourly rate for this entry EXAMPLES: - "Log 2 hours of research for case 123" → call with matter_id="123", description="Legal research", duration_minutes=120 - "Add 30 minute phone call with client" → call with matter_id="123", description="Phone call with client", duration_minutes=30 Create a new time entry for billing

04

get_client_mycase_cases

Useful for understanding a client's full legal portfolio. Get all cases/matters for a specific client

05

get_mycase_contact

Get detailed information for a specific contact/client

06

get_mycase_invoice

Get detailed information for a specific invoice

07

get_mycase_matter

Get detailed information for a specific case/matter

08

list_mycase_calendar_events

List calendar events for the law firm

09

list_mycase_contacts

USE WHEN: - User wants to see all their clients and contacts - User needs to find a client by name or email - User is exploring their contact database - User asks "list my clients" or "show all contacts" PARAMETERS: - page (OPTIONAL): Page number for pagination - page_size (OPTIONAL): Results per page (default: 25, max: 100) EXAMPLES: - "List all my clients" → call with no params - "Show my contacts" → call with no params - "List clients page 2" → call with page="2" List all contacts/clients in MyCase

10

list_mycase_documents

List documents for a specific case/matter

11

list_mycase_invoices

List invoices for the law firm

12

list_mycase_matters

Essential for case management and tracking. USE WHEN: - User wants to see all their legal cases/matters - User needs to find cases by status (open, closed, archived, on hold) - User is exploring their law firm's caseload - User asks "what cases do I have" or "list my open matters" PARAMETERS: - status (OPTIONAL): Filter by status — "open", "closed", "archived", "on_hold" - practice_area (OPTIONAL): Filter by practice area (e.g. "Family Law", "Criminal Defense") - client_id (OPTIONAL): Filter by specific client ID - page (OPTIONAL): Page number for pagination - page_size (OPTIONAL): Results per page (default: 25, max: 100) EXAMPLES: - "List all my open cases" → call with status="open" - "Show my family law matters" → call with practice_area="Family Law" - "List all matters" → call with no params List all cases/matters in MyCase legal practice management

13

list_mycase_payments

List payments received by the law firm

14

list_mycase_time_entries

List time entries for a specific case/matter

15

search_mycase_matters

Search cases/matters by keyword query

16

update_mycase_matter

Update an existing case/matter in MyCase

Example Prompts for MyCase Legal in Vercel AI SDK

Ready-to-use prompts you can give your Vercel AI SDK agent to start working with MyCase Legal immediately.

01

"List all my open cases in MyCase."

02

"Create a new time entry for 2 hours of legal research on the Smith Divorce case."

03

"Show me all cases for client John Smith."

Troubleshooting MyCase Legal MCP Server with Vercel AI SDK

Common issues when connecting MyCase Legal to Vercel AI SDK through the Vinkius, and how to resolve them.

01

createMCPClient is not a function

Install: npm install @ai-sdk/mcp

MyCase Legal + Vercel AI SDK FAQ

Common questions about integrating MyCase Legal MCP Server with Vercel AI SDK.

01

How does the Vercel AI SDK connect to MCP servers?

Import createMCPClient from @ai-sdk/mcp and pass the server URL. The SDK discovers all tools and provides typed TypeScript interfaces for each one.
02

Can I use MCP tools in Edge Functions?

Yes. The AI SDK is fully edge-compatible. MCP connections work on Vercel Edge Functions, Cloudflare Workers, and similar runtimes.
03

Does it support streaming tool results?

Yes. The SDK provides streaming primitives like useChat and streamText that handle tool calls and display results progressively in the UI.

Connect MyCase Legal to Vercel AI SDK

Get your token, paste the configuration, and start using 16 tools in under 2 minutes. No API key management needed.