# mycase-mcp

Connects Claude Code to MyCase legal practice software to look up client files, track tasks, inspect calendar events, and check billing.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 6
- Author: oktopeak
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/oktopeak/mycase-mcp
- Updated: 2026-10-15
- HTML: https://affpapa.org/en/nevibecode/mcp/mycase-mcp

## What it does

This server bridges AI agents with your MyCase practice management system. The assistant can fetch pending tasks, locate contacts, pull up matter details, and inspect file attachments via official OAuth 2.0 endpoints. Tokens remain on your computer, encrypted with AES-256-GCM.

Running the tool requires Node.js 18+ and a MyCase firm administrator profile. You must request your client credentials from MyCase support beforehand. The OAuth callback listens on port 5678 by default. Without an exact port match in your registered MyCase redirect URL, authentication will fail. The call logging feature remains experimental and activates only when `MYCASE_EXPERIMENTAL_TOOLS=1` is set.

## Requirements
- Needs: Node.js (commands run via npx)
- Environment variables: `MYCASE_CLIENT_ID`, `MYCASE_CLIENT_SECRET`, `ENCRYPTION_KEY`, `MYCASE_REDIRECT_PORT`, `MYCASE_EXPERIMENTAL_TOOLS` — keys and tokens: ask the human for the values, never commit them or put them in shared files.

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add --env MYCASE_CLIENT_ID=<MYCASE_CLIENT_ID> --env MYCASE_CLIENT_SECRET=<MYCASE_CLIENT_SECRET> --env ENCRYPTION_KEY=<ENCRYPTION_KEY> --env MYCASE_REDIRECT_PORT=<MYCASE_REDIRECT_PORT> --env MYCASE_EXPERIMENTAL_TOOLS=<MYCASE_EXPERIMENTAL_TOOLS> --transport stdio mycase-mcp -- npx -y @oktopeak/mycase-mcp
```
Replace <…> with your own values

### Codex

**Platform CLI**
```bash
codex mcp add mycase-mcp --env MYCASE_CLIENT_ID=<MYCASE_CLIENT_ID> --env MYCASE_CLIENT_SECRET=<MYCASE_CLIENT_SECRET> --env ENCRYPTION_KEY=<ENCRYPTION_KEY> --env MYCASE_REDIRECT_PORT=<MYCASE_REDIRECT_PORT> --env MYCASE_EXPERIMENTAL_TOOLS=<MYCASE_EXPERIMENTAL_TOOLS> -- npx -y @oktopeak/mycase-mcp
```
Replace <…> with your own values

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "mycase-mcp": {
            "command": "npx",
            "args": [
                "-y",
                "@oktopeak/mycase-mcp"
            ],
            "env": {
                "MYCASE_CLIENT_ID": "<MYCASE_CLIENT_ID>",
                "MYCASE_CLIENT_SECRET": "<MYCASE_CLIENT_SECRET>",
                "ENCRYPTION_KEY": "<ENCRYPTION_KEY>",
                "MYCASE_REDIRECT_PORT": "<MYCASE_REDIRECT_PORT>",
                "MYCASE_EXPERIMENTAL_TOOLS": "<MYCASE_EXPERIMENTAL_TOOLS>"
            }
        }
    }
}
```
Replace <…> with your own values

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "mycase-mcp": {
            "type": "stdio",
            "command": "npx",
            "args": [
                "-y",
                "@oktopeak/mycase-mcp"
            ],
            "env": {
                "MYCASE_CLIENT_ID": "<MYCASE_CLIENT_ID>",
                "MYCASE_CLIENT_SECRET": "<MYCASE_CLIENT_SECRET>",
                "ENCRYPTION_KEY": "<ENCRYPTION_KEY>",
                "MYCASE_REDIRECT_PORT": "<MYCASE_REDIRECT_PORT>",
                "MYCASE_EXPERIMENTAL_TOOLS": "<MYCASE_EXPERIMENTAL_TOOLS>"
            }
        }
    }
}
```
Replace <…> with your own values

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add -e MYCASE_CLIENT_ID=<MYCASE_CLIENT_ID> -e MYCASE_CLIENT_SECRET=<MYCASE_CLIENT_SECRET> -e ENCRYPTION_KEY=<ENCRYPTION_KEY> -e MYCASE_REDIRECT_PORT=<MYCASE_REDIRECT_PORT> -e MYCASE_EXPERIMENTAL_TOOLS=<MYCASE_EXPERIMENTAL_TOOLS> mycase-mcp npx -y @oktopeak/mycase-mcp
```
Replace <…> with your own values

## When to use it
- Retrieve active matters linked to a client
- Review deadlines and pending tasks for the current week
- Check outstanding balances on open accounts
- List documents linked to a specific case record

## Example prompts
- List open cases for Jane Smith
- Show all tasks due this week in MyCase
- Check the current balance for case 98765

## Similar
- [Reactive Resume](https://affpapa.org/en/nevibecode/mcp/reactive-resume.md) — MCP server · ★ 44908
- [screenpipe](https://affpapa.org/en/nevibecode/mcp/screenpipe.md) — MCP server · ★ 22082
- [Inbox Zero](https://affpapa.org/en/nevibecode/mcp/inbox-zero.md) — MCP server · ★ 12826
- [kaneo](https://affpapa.org/en/nevibecode/mcp/kaneo.md) — MCP server · ★ 9623
- [Mindwtr](https://affpapa.org/en/nevibecode/mcp/mindwtr.md) — MCP server · ★ 2330
- [Azure DevOps (ADO)](https://affpapa.org/en/nevibecode/mcp/azure-devops-ado.md) — MCP server · ★ 2071

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
