> ## Documentation Index
> Fetch the complete documentation index at: https://endclose.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Use End Close over MCP

> Connect Claude, ChatGPT, Cursor or another MCP client to End Close to read reconciliations, records, exceptions and data streams with OAuth sign-in.

End Close runs a Model Context Protocol (MCP) server at `https://api.endclose.com/mcp`. Add it to an AI assistant such as Claude, ChatGPT or Cursor, sign in with your End Close account, and the assistant can look up your reconciliations, records, matches, exceptions and data streams and answer questions about them.

The server is read-only. An assistant connected over MCP can't create, change or delete anything in End Close.

> [!NOTE]
>
> MCP access is turned on per organization. If the server answers that MCP isn't enabled for your organization, [contact End Close](mailto:founders@endclose.com) to request access.

## Prerequisites

* An End Close account in an organization with MCP access.
* An MCP client that supports remote servers over HTTP with OAuth sign-in.

## Connect your MCP client

**1. Add the server**

In your client's settings for MCP servers, connectors or integrations, add a remote server with this URL:

```text Server URL theme={"dark"}
https://api.endclose.com/mcp
```

**2. Sign in**

The client discovers End Close's sign-in page on its own and opens it. Sign in with your End Close account and approve the connection.

**3. Try a question**

Ask something like "List my environments in End Close" or "Which exceptions are open in Production?". The assistant calls End Close's tools and answers from your data.

The menus differ between Claude, ChatGPT and Cursor, but each needs only the server URL and an OAuth sign-in. You don't need an API key.

## What the assistant can do

Every tool except `list_environments` takes an `environment`, the name of the End Close environment to read, such as `Production` or `Sandbox`.

| Tool | What it returns |
| - | - |
| `list_environments` | The environments in your organization |
| `reconciliations_list`, `reconciliations_get` | Reconciliations and their data streams |
| `reconciliations_agent_status` | The current status of a reconciliation's agent |
| `reconciliation_rules_list` | A reconciliation's rules, in the order they run |
| `reconciliation_matches_list` | Matches, filtered by reconciliation or record |
| `reconciliation_exceptions_list`, `reconciliation_exceptions_get` | Exceptions with assignees and comments |
| `reconciliation_exceptions_review_get` | An exception's lines with their notes, status and difference |
| `records_list`, `records_get` | Records on your data streams |
| `data_streams_list`, `data_streams_get` | Data streams |
| `data_streams_health` | Ingestion health for a data stream |
| `file_imports_list`, `file_imports_get` | File imports and their status |
| `bank_accounts_list`, `bank_account_balances_list` | Bank accounts and their daily balances |
| `describe_schema` | Tables, columns and sample rows available to `query_sql` |
| `query_sql` | Runs a read-only `SELECT` over your environment's analytics data |

The API tools are the read operations of the [End Close API](https://endclose.com/docs/api-reference/overview.md), under the same names End Close's own agents use, and they return what the matching endpoints return. `query_sql` only reads allowlisted tables, and every query is limited to the environment you name.

## How sign-in works

The server uses OAuth. A request without a token gets a `401`, and the server publishes its OAuth metadata at `https://api.endclose.com/.well-known/oauth-protected-resource`, which names End Close's authorization server. Your client signs you in there and sends the token it receives with each request. The assistant sees the organization you signed in to and no other.

## FAQ

> [accordion] Can the assistant change data in End Close?
>
> No. The MCP server only offers read tools. To create records, rules or matches from code, use the [API](https://endclose.com/docs/api-reference/overview.md).

> [accordion] Do I need an API key?
>
> No. You sign in with your End Close account through OAuth. API keys are for calling the REST API directly.

> [accordion] Why does the server say MCP is not enabled?
>
> MCP access is turned on per organization. Contact End Close to enable it for yours.

> [accordion] Is there an MCP server for these docs?
>
> Yes, separately. The documentation site serves a search MCP server at `https://www.endclose.com/docs/mcp` that lets an assistant search these pages. It reads the docs only, not your End Close data.

## Related

> [card] [API overview](https://endclose.com/docs/api-reference/overview.md)
>
> The REST API behind the MCP tools.

> [card] [Agents](https://endclose.com/docs/concepts/agents.md)
>
> What End Close's own agents do with the same tools.

> [card] [Review exceptions](https://endclose.com/docs/guides/review-exceptions.md)
>
> The exceptions review the assistant can read.

> [card] [Records](https://endclose.com/docs/concepts/records.md)
>
> The records the assistant looks up.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.