How to integrate Harvey MCP with Atomic Agent

Connect Atomic Agent to Harvey MCP. List recent audit logs for your organization, find client matters updated this week, and more using natural language, with authentication handled for you.

Harvey logoHarvey
Api Key

Harvey is a legal AI platform for managing client matters, documents, intake, and audit logs. It helps legal teams organize case work and review activity in one secure workspace.

35 Tools

Introduction

Atomic Agent is an open-source AI agent that runs on your machine and supports local models through llama.cpp. Connect it to 1,500+ apps through Composio, including Harvey.

This guide uses Atomic Agent's built-in Composio integration. You need Atomic Agent v0.5.6 or later, your own Composio API key, and a Harvey account. See the Atomic Agent documentation for installation instructions.

Also integrate Harvey with

How Atomic Agent connects to Harvey

Atomic Agent connects to Composio's Tool Router over Streamable HTTP MCP. It discovers the tools needed for your request, and Composio handles account authentication.

Execution and account-connection tools follow Atomic Agent's configured approval policy. Review any approval prompt before allowing an action on your connected account.

Connect Harvey to Atomic Agent

  1. Sign up or sign in to the Composio dashboard. Copy your API key.
  2. In Atomic Agent, open the Integrations tab and select Composio. Select API key, press e, paste the key, and press Enter. The tools become available immediately, without a restart.
  3. Ask Atomic Agent to do something in Harvey. It searches Composio for the right tool.
  4. On first use, open the sign-in link returned in the chat. Connect your Harvey account, then return to Atomic Agent to continue.

Headless setup

Add the following line to ~/.atomic-agent/.env, replacing YOUR_COMPOSIO_API_KEY with your key. Start Atomic Agent after saving the file.

bash
COMPOSIO_API_KEY=YOUR_COMPOSIO_API_KEY

What is the Harvey MCP server, and what's possible with it?

The Harvey MCP server is an implementation of the Model Context Protocol that connects your AI agent and assistants like Claude, Cursor, etc directly to your Harvey account. It provides structured and secure access to Harvey's legal AI assistants, Vault documents, client matters, intake requests, audit logs, and usage history, so your agent can run legal AI tasks, search and manage documents, organize client matters, submit intake requests, and track workspace activity on your behalf.

  • Legal AI tasks: Have your agent start Harvey agent runs or generate Assistant responses using prompts, documents, knowledge sources, matter context, model selection, and citations.
  • Vault document work: Let the agent create and manage Vault projects, upload and search files, check processing status, add files to review tables, and retrieve review results.
  • Client and matter management: Direct your agent to create, update, restore, list, or delete Harvey clients and matters, including matter usage information.
  • Intake request handling: Instruct your agent to submit Harvey intake requests with documents and check their status, assignment, timestamps, and attachments.
  • Activity and usage tracking: Have your agent inspect audit logs and export query or workspace usage history for a selected time period.

Use Harvey from Atomic Agent

With your account connected, ask Atomic Agent to work with Harvey in natural language. You can connect more apps through the same Composio integration as you need them.

Visit the Atomic Agent website or inspect the Atomic Agent source code.

Troubleshooting

Why is my API key rejected?

Copy the key directly from the Composio dashboard. Atomic Agent requires ASCII characters because it sends the key in an HTTP header. Remove any extra characters introduced when copying.

Why are Composio tools unavailable after saving a key?

Check that you use Atomic Agent v0.5.6 or later and that Composio is enabled in your configuration. A "composio": { "enabled": false } setting disables the integration while keeping the saved key on disk.

Does Composio have a free plan?

The Hobby plan includes 100,000 tool calls per month. Composio-managed OAuth apps have a lower included allowance. See Composio pricing for the current limits that apply to your connection.

TOOLS

Supported Tools

Every Harvey action and event your agent gets out of the box.

Add Review Table Row

Add one processed file or a group of processed files to a Harvey review table and schedule asynchronous review processing.

Create Agent Thread

Start an asynchronous Harvey agent run from a prompt and optional documents.

Create Assistant Completion

Generate one non-streaming Harvey Assistant response from a prompt with optional documents or knowledge sources, matter attribution, model selection, and citations.

Create History File Download URLs

Create time-limited pre-signed download URLs for file IDs returned by Harvey query-history exports.

Create Intake Request

Submit an idempotent request and optional documents to the Harvey Intake queue.

Create Vault Project

Create a Harvey Vault project or knowledge base, optionally attributed to a client matter.

Delete Matters

Idempotently soft-delete 1 to 10,000 Harvey matters by firm client and matter identifiers.

Delete Vault File

Permanently delete one file from a Harvey Vault project.

Delete Vault Project

Move an entire Harvey Vault project and all its contents to the workspace recycle bin.

Export Query History

Export enriched query history for a UTC epoch window of at most 30 days, optionally including related file IDs.

Export Usage History

Export enriched Harvey workspace usage events for a UTC epoch range of at most 30 days, optionally including related file IDs.

Get Agent

Return metadata for one reachable published Harvey agent.

Get Agent Thread

Read one Harvey agent thread status and any available answer, citations, generated files, or error.

Get Current User

Return the Harvey service-user identity associated with the connected API token.

Get Earliest Audit Log

Return the earliest available Harvey audit log, optionally filtered by log type.

Get Intake Request

Read one Harvey Intake request's lifecycle state, assignment, timestamps, and attachments.

Get Latest Audit Log

Return the latest available Harvey audit log, optionally for one log type.

Get Review Table

Return a Harvey review table's title, creation time, and associated file IDs.

Get Review Table Row

Return a Harvey review-table row and its cell results for one file.

Get Vault Files

Return details and processing status for up to 1,000 Harvey Vault file IDs.

Get Vault Project

Return a Harvey Vault project's metadata, file identifiers and names, review tables, and storage limits.

List Agents

List published Harvey agents available to the connected service user, one cursor page at a time.

List Audit Logs

Page forward through Harvey audit logs from a starting log ID, optionally filtered by log type.

List Client Matters

Return all Harvey client matters, including deleted records and usage statistics.

List Recycled Vault Projects

List Vault projects currently in the workspace recycle bin, optionally filtered by project-name text or client matter.

List Vault Project Files

List, filter, and sort files in a Harvey Vault project, one cursor page at a time.

List Vault Projects

List and filter workspace Vault projects and knowledge bases, one page at a time.

List Vault Project Users

List workspace users with direct or inherited effective access to a Harvey Vault project.

Remove Vault Project Users

Remove direct WORKSPACE_USER shares from a Harvey Vault project by email.

Search Audit Logs by Time

Return the first Harvey audit log at or after a UTC epoch timestamp, optionally filtered by log type.

Search Vault

Return semantically relevant document chunks from one Harvey Vault project.

Update Vault Project Users

Add workspace users or update their direct access level on a Harvey Vault project.

Upload Vault Files

Upload up to 50 new or replacement files to a Harvey Vault project.

Upsert Clients

Create, update, or restore up to 10,000 Harvey clients by firm client identifier.

Upsert Matters

Create, update, or restore up to 10,000 Harvey matters under existing clients.

FAQ

Frequently asked questions

With a standalone Harvey MCP server, the agents and LLMs can only access a fixed set of Harvey tools tied to that server. However, with the Composio Tool Router, agents can dynamically load tools from Harvey and many other apps based on the task at hand, all through a single MCP endpoint.

Yes, you can. Atomic Agent fully supports MCP integration. You get structured tool calling, message history handling, and model orchestration while Tool Router takes care of discovering and serving the right Harvey tools.

Yes, absolutely. You can configure which Harvey scopes and actions are allowed when connecting your account to Composio. You can also bring your own OAuth credentials or API configuration so you keep full control over what the agent can do.

All sensitive data such as tokens, keys, and configuration is fully encrypted at rest and in transit. Composio is SOC 2 Type 2 compliant and follows strict security practices so your Harvey data and credentials are handled as safely as possible.

Start with Harvey.It takes 30 seconds.

Managed auth, hosted MCP servers, and every Harvey tool your agent needs.Free to start.

Start building