filevine-mcp
An MCP server that connects Claude to the Filevine legal practice management platform, letting it authenticate and read (plus minimally write) case, contact, note, document, task, and custom collection data.
Authenticate & manage session:
authenticate(exchange PAT for access token, discover org/user IDs),auth-status,logout.Cases:
list-cases(filter by active/closed/pending/all, search name or number, paginate) andget-casefor full details.Contacts:
search-contactsacross all cases by name/email/phone,get-contactby ID,list-case-contactsfor a specific case.Notes:
list-notesper case, andcreate-noteto write AI summaries, findings, or follow-ups (general, phone_call, internal).Documents:
list-documentsreturns metadata, URLs, and file info only — no binary content.Tasks:
list-tasksby status (open/completed/overdue/all) andcreate-taskwith title, description, assignee, due date (due date may be ignored by the API).Custom PI data:
discover-schemamaps firm-specific project types and collection sections, thenget-collectionfetches data like medical records, liens, or settlements.Safety built in: automatic rate limiting with 429 backoff, AES-256-GCM encrypted token storage, and audit logging of every tool call; only
create-noteandcreate-taskmodify data.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@filevine-mcp show my active cases"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Filevine MCP — Claude Integration
Built by Oktopeak — AI transformation & automation for law firms
Digital transformation for legal and healthcare businesses. We build AI integrations, workflow automation, and custom software your firm owns outright — including this connector. → Book a 30-min call
An open-source MCP (Model Context Protocol) server connecting Claude to Filevine practice management platform. Access cases, contacts, documents, notes, tasks, and custom PI data from Claude with automatic rate limiting and audit logging.
Supported Endpoints: 15 tools covering the Filevine v2 REST API.
Not a developer? You don't need to be.
The README below assumes someone comfortable editing a JSON config file. If that's not you or your team, we deploy this for law firms: scoped credentials, audit log wired in, one custom workflow, training.
→ Whole firm? The Firm Plan: $300 a month. Set up in your own cloud, every attorney signs in with their own login, one audit log, one automation built for you each month, no setup fee, cancel any time. → oktopeak.com/firm-plan/, or book a 30-min call
Jump to: Setup · Available tools · Compliance & security · Need it deployed for you? · Other connectors
Setup
1. Prerequisites
Node.js 18+
Filevine account with API access enabled
Client ID, Client Secret, and Personal Access Token (PAT) from your firm's Filevine settings
Claude Code, MCP client, or compatible application
2. Get Filevine Credentials
Personal Access Token (PAT)
Go to Filevine Settings → Access Tokens → Generate PAT
Copy and save securely
Client Credentials
Go to Settings → Client Secrets → Create Client ID + Client Secret
Valid for 1 year, can be rotated anytime
Copy both values
Organization & User IDs (auto-discovered on first auth call)
The server will discover these from
/v2/users/meon first run
3. Environment Variables
Copy .env.example to .env:
# Filevine OAuth client credentials
FILEVINE_CLIENT_ID=<from Settings → Client Secrets>
FILEVINE_CLIENT_SECRET=<from Settings → Client Secrets>
FILEVINE_PAT=<from Settings → Access Tokens>
# API region (us or ca)
FILEVINE_REGION=us
# Token encryption key (generate new one)
# node -e "console.log(require('crypto').randomBytes(32).toString('hex'))"
ENCRYPTION_KEY=<64-character-hex-string>4. Install & Build
npm install
npm run build5. Run the Server
# Start the server
npm start
# Or use MCP inspector for debugging
npm run inspectThe server listens on stdio and outputs connection status to stderr.
6. Authenticate
Before using any Filevine tools, call the authenticate tool:
Tool: authenticate
→ Exchanges PAT for access token
→ Discovers org_id and user_id
→ Stores encrypted tokens in ~/.oktopeak-filevine/tokens.encTokens auto-refresh before expiry (3600s TTL). Call logout to clear stored tokens.
Related MCP server: filevine-mcp
Tools (15 Total)
Authentication (3 tools)
Tool | Purpose |
| Exchange PAT for access token and cache org/user IDs |
| Check authentication status and token expiry |
| Clear stored tokens |
Cases — Projects (2 tools)
Tool | Purpose |
| List cases (active, closed, pending); search by name/number |
| Get full case details by ID |
Contacts (3 tools)
Tool | Purpose |
| Search contacts by name, email, or phone across all cases |
| Get contact details by ID |
| List all contacts on a specific case |
Notes (2 tools)
Tool | Purpose |
| List case notes; supports general, phone_call, and internal types |
| Create a note (e.g., AI summary, findings, follow-ups) |
Documents (1 tool)
Tool | Purpose |
| List case documents with metadata (name, type, size, URL, dates) |
Note: Returns document metadata only — no binary content. Use returned URLs to fetch document content if needed.
Tasks (2 tools)
Tool | Purpose |
| List case tasks by status (open, completed, overdue) |
| Create a new task with title, description, assignee, due date |
Known Issue: The targetDate field may be ignored by the Filevine API as of Aug 2025. Workaround: set tasks via UI.
Custom Data — Collections (2 tools)
Tool | Purpose |
| Map your firm's custom sections (medical records, liens, settlements, etc.) |
| Fetch custom collection data using discovered selectors |
Why collections matter: Unlike standardized case fields, each firm builds custom "Collection sections" for PI workflows. The discover-schema tool finds your firm's structure.
Example workflow:
Call
discover-schema→ see available sections (e.g., "MedicalRecords", "Liens")Use selector from discovery →
get-collectionto fetch PI-specific data
Rate Limiting & Performance
Filevine Rate Limits:
Endpoint | Limit |
Standard | 320 req/endpoint/min |
Billing | 250 req/endpoint/min |
Reports/Vitals | 5 req/endpoint/min |
VineSign | 10 req/user/month |
Implementation:
Token bucket at 300 req/min (conservative)
Exponential backoff on 429 Too Many Requests (1s → 2s → 4s → ... → 30s max)
Automatic wait before rate limit breach
API Details
Request Flow
Token Exchange (on first
authenticatecall)POST https://identity.filevine.com/connect/token client_id, client_secret, grant_type=personal_access_token, token=PAT → access_token (3600s), refresh_token, scopesOrg/User Discovery
GET /v2/users/me Authorization: Bearer {access_token} → {id: user_id, org_id: org_id}Every API Request (3 required headers)
Authorization: Bearer {access_token} x-fv-orgid: {org_id} x-fv-userid: {user_id}
Base URLs
US:
https://api.filevine.ioCA:
https://api.filevine.ca
Set via FILEVINE_REGION environment variable.
Authentication Headers
The biggest difference from other legal APIs: every request needs 3 headers, not just Authorization. Filevine uses x-fv-orgid and x-fv-userid to scope queries to the correct organization and user context.
Architecture
src/
├── index.ts # Server entry point
├── filevine-client.ts # API client with 3-header middleware
├── auth/
│ ├── authTools.ts # authenticate, auth-status, logout
│ ├── oauth.ts # PAT token exchange + org/user discovery
│ └── token-store.ts # AES-256-GCM encrypted token storage
├── tools/
│ ├── cases.ts # list-cases, get-case
│ ├── contacts.ts # search-contacts, get-contact, list-case-contacts
│ ├── notes.ts # list-notes, create-note
│ ├── documents.ts # list-documents
│ ├── tasks.ts # list-tasks, create-task
│ └── collections.ts # discover-schema, get-collection
├── resources/
│ ├── auth-status.ts # Auth status resource (filevine://auth/status)
│ └── compliance.ts # Compliance notice
├── audit/
│ └── logger.ts # Audit logging (JSON-lines)
└── utils/
└── rate-limiter.ts # Token bucket + 429 backoffToken Storage
Tokens are encrypted with AES-256-GCM and stored locally:
Location:
~/.oktopeak-filevine/tokens.encEncryption: AES-256-GCM with random IV + auth tag
Key:
ENCRYPTION_KEYfrom.env(64-char hex)
Audit Logging
Every tool call is logged to ~/.oktopeak-filevine/audit.log:
Timestamp, tool name, arguments (secrets redacted)
Outcome (success/error), user ID, case ID, result count
Supports ABA Opinion 512 compliance documentation
Error Handling
Common Errors
Error | Cause | Fix |
| Missing env var | Generate key: |
| Invalid credentials | Verify Client ID, Secret, PAT from Filevine Settings |
| Token doesn't have required scopes | Regenerate PAT and Client Credentials in Filevine |
| Rate limit hit | Server auto-backs off; normal behavior under load |
| Selector not found | Run |
Development
TypeScript
Strict mode enabled
ES2022 target, Node16 modules
npm run build→build/directory
Dependencies
@modelcontextprotocol/sdk— MCP protocoldotenv— Environment loadingzod— Schema validation for tool parameterscrypto,fs,http— Node builtins
Debugging
npm run inspectOpens MCP inspector at http://localhost:3000 — test tools, check parameters, verify responses.
Testing
npm run build
npm start
# In another terminal:
npm run inspectResources
Official Filevine
API Docs: developer.filevine.io
Support: support.filevine.com/hc/en-us
Examples: github.com/Filevine/filevine-api-examples (C#, JS, Python)
Rate Limits: support.filevine.com/hc/en-us/articles/30948396130203
Reference Implementations
Treillage (Python): github.com/W1ndst0rm/Treillage — Rate limiter + token refresh reference
Compliance & Security
Data Handling: All Filevine data fetched on-demand — nothing cached locally
Token Storage: AES-256-GCM encrypted on disk; decryption requires
ENCRYPTION_KEYAudit Logging: Every tool call logged with redacted secrets
Rate Limiting: 300 req/min rolling window + 429 backoff protects your account
Write Access: Only
create-noteandcreate-taskmodify dataToken Refresh: Auto-refresh 5 min before expiry (3600s TTL)
See src/resources/compliance.ts for full compliance notice.
License
MIT — Oktopeak
Need more than the connector?
The open-source connector reads your Filevine data and lets Claude work with it. That handles about 20% of what most firms eventually want.
We help two ways, depending on your scope:
→ Whole firm? The Firm Plan: $300 a month. Set up in your own cloud, every attorney signs in with their own login, one audit log, one automation built for you each month, no setup fee, cancel any time. → oktopeak.com/firm-plan/
→ Filevine Integration: For custom reporting, project schema work, document and intake automation, and the production software layer around Filevine. → oktopeak.com/services/filevine-integration/
Want a polished overview of this connector with FAQ? → oktopeak.com/filevine-mcp/
Want to talk first? → Book a 30-min scoping call
Other connectors by Oktopeak
We ship the same kind of connector for other practice management platforms. Each has its own overview page on oktopeak.com:
Clio MCP: Clio practice management. Source: github.com/oktopeak/clio-mcp. npm:
@oktopeak/clio-mcpMyCase MCP: MyCase legal practice management. Source: github.com/oktopeak/mycase-mcp. npm:
@oktopeak/mycase-mcpLawmatics MCP: Lawmatics legal CRM and intake. Source: github.com/oktopeak/lawmatics-mcp. npm:
@oktopeak/lawmatics-mcpIntakeQ / PracticeQ MCP: HIPAA-aware connector for IntakeQ/PracticeQ (healthcare). Audit logging on every PHI read/write. npm:
@oktopeak/intakeq-mcp
Same architecture, same audit logging, same encryption at rest. All MIT licensed.
Supporting this project
This connector is free, MIT licensed, and maintained by Oktopeak. It always will be — we don't take donations. If it saved you time, the things that actually help:
Star this repo. It is genuinely how other firms find it.
Tell another firm running Filevine.
Leave a review if we helped you directly.
Need it deployed, extended, or maintained for your firm? Commercial support — that is what funds the free work.
Who we are
Oktopeak — digital transformation for law firms and healthcare.
We're a 7-person in-house product team building AI solutions for regulated industries: AI integrations, workflow automation, and custom software our clients own outright. We maintain five open-source MCP connectors — Clio, MyCase, Filevine, Lawmatics, and IntakeQ — and deploy them inside real practices with scoped credentials, audit logs, and workflows built around how your team actually works.
✉️ office@oktopeak.com — security reports welcome
💼 LinkedIn
Available Tools
15 toolsauthenticateA
Exchange your Filevine Personal Access Token (PAT) for an access token. Must be called once before using other Filevine tools. Requires FILEVINE_CLIENT_ID, FILEVINE_CLIENT_SECRET, and FILEVINE_PAT in .env
Inputs: no named parameters.
auth-statusA
Check whether the server is authenticated with Filevine and when the token expires.
Inputs: no named parameters.
create-noteA
Create a new note on a case. Useful for logging AI summaries, findings, or follow-up items.
Inputs: case_id (required), content (required), note_type.
create-taskA
Create a new task on a case. Note: targetDate field may be ignored by Filevine API (known issue as of Aug 2025).
Inputs: title (required), case_id (required), due_date, assigned_to, +1 more.
discover-schemaA
Discover the firm's custom data structure: list all project types and their collection sections. Use this to map section selectors for get-collection tool.
Inputs: no named parameters.
get-caseA
Get detailed information about a specific case (project) by ID.
Inputs: case_id (required).
get-collectionA
Get custom collection data (medical records, liens, settlements, etc.) for a case. Use discover-schema first to find available selectors.
Inputs: case_id (required), selector (required), limit.
get-contactA
Get detailed information about a specific contact by ID.
Inputs: contact_id (required).
list-case-contactsB
List all contacts assigned to a specific case.
Inputs: case_id (required), limit.
list-casesA
List cases (projects) from Filevine, optionally filtered by status or search term.
Inputs: page, limit, search, status.
list-documentsB
List all documents for a specific case. Returns metadata, URLs, and file info — not the binary content.
Inputs: case_id (required), page, limit.
list-notesB
List all notes for a specific case.
Inputs: case_id (required), page, limit.
list-tasksB
List all tasks for a specific case, optionally filtered by status.
Inputs: case_id (required), page, limit, status.
logoutA
Remove the stored Filevine tokens from disk.
Inputs: no named parameters.
search-contactsA
Search for contacts across all cases by name or email.
Inputs: search (required), page, limit.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 15 tools
Each tool targets a distinct resource and action (cases, notes, contacts, documents, tasks, collections, auth). The few overlapping areas like list-case-contacts and search-contacts are clearly differentiated by scope, and descriptions leave no ambiguity.
Most tools follow a verb_noun pattern with hyphens (list-*, get-*, create-*), which is consistent and predictable. However, authenticate, logout, and auth-status deviate from this pattern, breaking the uniformity slightly.
With 15 tools, the server is well-scoped for its purpose. Each tool addresses a distinct need, and the count is within the ideal range, not feeling excessive or sparse.
The tool surface covers core read workflows for cases, contacts, documents, notes, tasks, and custom data, plus note and task creation. However, there are notable gaps: no update/delete for cases, notes, or tasks, no document content retrieval, and no contact creation/update. These omissions create dead ends for workflows requiring full CRUD.
Maintenance
Related MCP Connectors
Law firm management MCP: manage cases, clients, tasks, calendar and documents via Claude AI.
MCP server unifying ERPs, CRMs, APIs and knowledge base for Claude, ChatGPT and Gemini.
MCP server giving Claude AI access to 22+ NYC public-record databases for real estate due diligence
Hosted CallRail MCP server for Claude, ChatGPT and Cursor, with each action switched per account.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceAn MCP server for Clio Manage legal practice management software that enables Claude and other MCP clients to read and write Clio data including contacts, matters, and activities directly from chat.8MIT
- AlicenseCqualityBmaintenanceMCP server for Filevine that enables natural language interaction with legal case management, including projects, contacts, tasks, documents, billing, and more via Claude Desktop.1005MIT
- AlicenseAqualityCmaintenanceMCP server that connects Clio Manage to Claude via OAuth, enabling law firm management tasks like matter lookup, time tracking, billing, calendar, and document retrieval through natural language.41MIT
- FlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that enables Claude (or any MCP client) to read and write Clio Manage data—contacts, matters, activities—directly from chat, with flat-fee billing support in one call.-