Skip to main content
Glama
Intacct MCP Server

Intacct MCP Server

by Thejjones
README.md
# Intacct MCP Server

An open-source [Model Context Protocol](https://modelcontextprotocol.io/) (MCP) server that gives AI agents read-only access to [Sage Intacct](https://www.sageintacct.com/) financial data via the SOAP/XML Web Services API.

## Tools

| Tool | Description |
|------|-------------|
| `list_objects` | List all available Intacct object types (APBILL, CUSTOMER, GLENTRY, etc.) |
| `query_records` | Query records with field selection, filtering, and pagination (max 2000) |
| `get_object` | Fetch a single record by key (RECORDNO) |
| `run_report` | Execute a saved Intacct report with optional parameters |

## Prerequisites

- Python 3.11+
- Sage Intacct Web Services credentials (sender ID/password + API user)
- An Intacct connector module providing `intacct/` and `infra/` packages (see [Connector](#connector) below)

## Quick Start

### 1. Clone and install

```bash
git clone https://github.com/Thejjones/intacct-mcp-server.git
cd intacct-mcp-server
pip install -r requirements.txt
```

### 2. Add the connector

This repo contains the MCP scaffold only. You need to provide the `intacct/` and `infra/` packages that handle Intacct API communication and infrastructure concerns (credential loading, audit logging).

The connector must expose:

- `intacct.client.IntacctClient` — async client with `inspect()`, `read()`, `query()`, `read_report()`, `read_more()` methods
- `intacct.client.IntacctCredentials` — dataclass with `sender_id`, `sender_password`, `company_id`, `user_id`, `user_password`
- `intacct.exceptions.IntacctError` (and subclasses `IntacctAuthError`, `IntacctAPIError`, `IntacctRateLimitError`)
- `infra.secrets.load_intacct_credentials() -> IntacctCredentials`
- `infra.audit.log_tool_invocation(tool_name, arguments, status, duration_ms, error=None)`

### 3. Configure credentials

Copy the example env file and fill in your Intacct credentials:

```bash
cp config/.env.example .env
```

### 4. Run

```bash
python server.py
```

The server communicates over stdio using the MCP protocol.

### 5. Connect to Claude Desktop

Add to your Claude Desktop config (`claude_desktop_config.json`):

```json
{
  "mcpServers": {
    "intacct": {
      "command": "python",
      "args": ["server.py"],
      "cwd": "/path/to/intacct-mcp-server"
    }
  }
}
```

## Docker

```bash
# Build (ensure intacct/ and infra/ are present)
docker build -t intacct-mcp-server .

# Run via stdio
docker run --rm -i --env-file .env intacct-mcp-server
```

## Connector

This repository is the **open-source scaffold** — it contains the MCP server entry point, tool definitions, tests, and container configuration. The actual Intacct API client (`intacct/`) and infrastructure glue (`infra/`) are maintained separately as a proprietary connector.

If you want to build your own connector, implement the interfaces described in [Quick Start step 2](#2-add-the-connector). The tools in `tools/` are thin wrappers that delegate all API logic to the connector.

## Project Structure

```
intacct-mcp-server/
├── server.py              # FastMCP entry point, tool registration, error handling
├── tools/
│   ├── list_objects.py    # Cached object type listing
│   ├── query.py           # Paginated record queries
│   ├── get_object.py      # Single record fetch
│   └── run_report.py      # Report execution with polling + pagination
├── intacct/               # (connector — not included in this repo)
├── infra/                 # (connector — not included in this repo)
├── tests/                 # Unit tests
├── config/
│   └── .env.example       # Environment variable template
├── Dockerfile             # Multi-stage container build
├── pyproject.toml         # Project metadata and dependencies
└── requirements.txt       # Pip dependencies
```

## License

Apache License 2.0 — see [LICENSE](LICENSE) for details.

Copyright 2026 Digital Vanguard Solutions.