Filevine Mcp

io.github.oktopeak由 GitHub 账号 oktopeak 发布v1.0.1更新于 Oct 24, 2026

Open-source MCP server connecting Claude to Filevine practice management. Built by Oktopeak.

概览

AI 生成的概览

开源 MCP 服务器,把助手连接到 Filevine 法律业务管理平台,可读取案件、联系人、笔记、文档和任务,并创建笔记与任务。

可以做什么
  • 完成 Filevine 认证,查看或清除已保存的登录状态
  • 列出并读取案件,跨案件搜索或读取联系人
  • 列出案件笔记并创建新笔记
  • 列出案件文档,仅返回元数据,不含文件内容
  • 列出任务并创建带标题、负责人和截止日期的任务
  • 发现自定义集合结构并读取医疗记录、留置权等自定义案件数据
适用场景
适合已使用 Filevine 的律所或法务团队,希望助手在不离开对话的情况下查询案件详情、联系人、笔记、文档和特定业务数据,或起草笔记与任务。
运行要求
以本地 Node.js 18+ 进程运行,从 npm 安装。需要已开通 API 访问的 Filevine 账号,以及四个环境变量:FILEVINE_CLIENT_ID、FILEVINE_CLIENT_SECRET、FILEVINE_PAT 和 ENCRYPTION_KEY,可选 FILEVINE_REGION(us 或 ca)。使用任何工具前必须先调用 authenticate;令牌加密保存在用户主目录下。
安装前请注意
需要 Filevine OAuth 客户端凭据和个人访问令牌,可访问律所案件数据;ENCRYPTION_KEY 用于保护本地保存的令牌。只有 create-note 和 create-task 会写入数据,但改动会直接进入实际使用的业务管理系统。案件数据会按需发送给模型提供方,每次工具调用都会写入本地审计日志。README 中还推广付费部署方案。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Filevine Mcp,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

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.

[!TIP] 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

  1. Personal Access Token (PAT)

    • Go to Filevine Settings → Access Tokens → Generate PAT
    • Copy and save securely
  2. Client Credentials

    • Go to Settings → Client Secrets → Create Client ID + Client Secret
    • Valid for 1 year, can be rotated anytime
    • Copy both values
  3. Organization & User IDs (auto-discovered on first auth call)

    • The server will discover these from /v2/users/me on first run

3. Environment Variables

Copy .env.example to .env:

bash
# Filevine OAuth client credentialsFILEVINE_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

bash
npm installnpm run build

5. Run the Server

bash
# Start the servernpm start
# Or use MCP inspector for debuggingnpm run inspect

The 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.enc

Tokens auto-refresh before expiry (3600s TTL). Call logout to clear stored tokens.


Tools (15 Total)

Authentication (3 tools)

ToolPurpose
authenticateExchange PAT for access token and cache org/user IDs
auth-statusCheck authentication status and token expiry
logoutClear stored tokens

Cases — Projects (2 tools)

ToolPurpose
list-casesList cases (active, closed, pending); search by name/number
get-caseGet full case details by ID

Contacts (3 tools)

ToolPurpose
search-contactsSearch contacts by name, email, or phone across all cases
get-contactGet contact details by ID
list-case-contactsList all contacts on a specific case

Notes (2 tools)

ToolPurpose
list-notesList case notes; supports general, phone_call, and internal types
create-noteCreate a note (e.g., AI summary, findings, follow-ups)

Documents (1 tool)

ToolPurpose
list-documentsList 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)

ToolPurpose
list-tasksList case tasks by status (open, completed, overdue)
create-taskCreate 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)

ToolPurpose
discover-schemaMap your firm's custom sections (medical records, liens, settlements, etc.)
get-collectionFetch 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:

  1. Call discover-schema → see available sections (e.g., "MedicalRecords", "Liens")
  2. Use selector from discovery → get-collection to fetch PI-specific data

Rate Limiting & Performance

Filevine Rate Limits:

EndpointLimit
Standard320 req/endpoint/min
Billing250 req/endpoint/min
Reports/Vitals5 req/endpoint/min
VineSign10 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

  1. Token Exchange (on first authenticate call)

    POST https://identity.filevine.com/connect/tokenclient_id, client_secret, grant_type=personal_access_token, token=PAT→ access_token (3600s), refresh_token, scopes
  2. Org/User Discovery

    GET /v2/users/meAuthorization: Bearer {access_token}→ {id: user_id, org_id: org_id}
  3. 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.io
  • CA: 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 backoff

Token Storage

Tokens are encrypted with AES-256-GCM and stored locally:

  • Location: ~/.oktopeak-filevine/tokens.enc
  • Encryption: AES-256-GCM with random IV + auth tag
  • Key: ENCRYPTION_KEY from .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

ErrorCauseFix
ENCRYPTION_KEY is not setMissing env varGenerate key: node -e "console.log(require('crypto').randomBytes(32).toString('hex'))"
PAT exchange failed (401)Invalid credentialsVerify Client ID, Secret, PAT from Filevine Settings
Failed to discover user infoToken doesn't have required scopesRegenerate PAT and Client Credentials in Filevine
429 Too Many RequestsRate limit hitServer auto-backs off; normal behavior under load
Unknown collection selectorSelector not foundRun discover-schema to find available selectors

Development

TypeScript

  • Strict mode enabled
  • ES2022 target, Node16 modules
  • npm run build → build/ directory

Dependencies

  • @modelcontextprotocol/sdk — MCP protocol
  • dotenv — Environment loading
  • zod — Schema validation for tool parameters
  • crypto, fs, http — Node builtins

Debugging

bash
npm run inspect

Opens MCP inspector at http://localhost:3000 — test tools, check parameters, verify responses.

Testing

bash
npm run buildnpm start# In another terminal:npm run inspect

Resources

Official Filevine

Reference Implementations


Compliance & Security

  • Data Handling: All Filevine data fetched on-demand — nothing cached locally
  • Token Storage: AES-256-GCM encrypted on disk; decryption requires ENCRYPTION_KEY
  • Audit Logging: Every tool call logged with redacted secrets
  • Rate Limiting: 300 req/min rolling window + 429 backoff protects your account
  • Write Access: Only create-note and create-task modify data
  • Token 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:

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.

来源:README.md,提交 9837bbb

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v1.0.1最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分