# SQL Account (read-only)

> SQL Account (read-only) is an open-source MCP server for databases. Read-only MCP server letting Claude or ChatGPT query SQL Account customers, stock. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, macOS, Windows, Linux, Self-hosted
- **Website:** https://z9systems.com
- **Repository:** https://github.com/z9systems/sql-account-mcp
- **MCP Registry name:** io.github.z9systems/sql-account-mcp
- **Categories:** [databases](https://ai-powered.com/categories/databases), [finance and payments](https://ai-powered.com/categories/finance-and-payments), [accounting and tax](https://ai-powered.com/categories/accounting-and-tax)
- **Listing updated:** 2026-11-27

## About

Connect an AI assistant to SQL Account and ask questions about customers, stock items, sales and purchase invoices, and payments in plain language. The server runs locally over stdio and calls the SQL Account REST API with your own access and secret keys, signing each request with AWS Signature Version 4.

Every tool is a lookup. Requests are limited to HTTP GET, so the server cannot create, edit or delete records. Queries can be filtered by exact field values, and results are returned in pages of up to 50 records.

It suits accounting and operations staff at businesses that already run SQL Account and want quick answers about balances, stock levels or payments without opening the desktop software. The SQL Account API service must be enabled by the vendor, and the project is unofficial and not endorsed by E Stream MSC.

## Features

- **Customer and stock lookup:** Find customers by code or company name and check stock items with unit of measure and price lines.
- **Invoice queries:** Search sales and purchase invoices by customer, number or date, including their item lines.
- **Payment history:** List payments received from customers to answer questions about what has been paid.
- **Generic record queries:** Query many SQL Account record types with exact-match filters on their field names.
- **Read-only access:** Only GET requests are sent, so the assistant cannot change data in SQL Account.
- **Local key handling:** API keys stay on the user's machine and are used only to sign requests to the SQL Account API.

## Good for

- Asking an AI assistant how much a specific customer has been invoiced in a given month
- Checking stock on hand for an item before quoting a customer
- Reviewing which payments were received on a particular date
- Looking up the line items on a sales or purchase invoice by number

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add sql-account-mcp --env SQLACC_ACCESS_KEY='<SQLACC_ACCESS_KEY>' --env SQLACC_SECRET_KEY='<SQLACC_SECRET_KEY>' -- npx -y sql-account-mcp
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "sql-account-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "sql-account-mcp"
      ],
      "env": {
        "SQLACC_ACCESS_KEY": "<SQLACC_ACCESS_KEY>",
        "SQLACC_SECRET_KEY": "<SQLACC_SECRET_KEY>"
      }
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "sql-account-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "sql-account-mcp"
      ],
      "env": {
        "SQLACC_ACCESS_KEY": "<SQLACC_ACCESS_KEY>",
        "SQLACC_SECRET_KEY": "<SQLACC_SECRET_KEY>"
      }
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "sql-account-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "sql-account-mcp"
      ],
      "env": {
        "SQLACC_ACCESS_KEY": "<SQLACC_ACCESS_KEY>",
        "SQLACC_SECRET_KEY": "<SQLACC_SECRET_KEY>"
      }
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "sql-account-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "sql-account-mcp"
      ],
      "env": {
        "SQLACC_ACCESS_KEY": "<SQLACC_ACCESS_KEY>",
        "SQLACC_SECRET_KEY": "<SQLACC_SECRET_KEY>"
      }
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add sql-account-mcp --env SQLACC_ACCESS_KEY='<SQLACC_ACCESS_KEY>' --env SQLACC_SECRET_KEY='<SQLACC_SECRET_KEY>' -- npx -y sql-account-mcp
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.sql-account-mcp]
command = "npx"
args = ["-y", "sql-account-mcp"]
env = { SQLACC_ACCESS_KEY = "<SQLACC_ACCESS_KEY>", SQLACC_SECRET_KEY = "<SQLACC_SECRET_KEY>" }
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "sql-account-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "sql-account-mcp"
      ],
      "env": {
        "SQLACC_ACCESS_KEY": "<SQLACC_ACCESS_KEY>",
        "SQLACC_SECRET_KEY": "<SQLACC_SECRET_KEY>"
      }
    }
  }
}
```

Or run: gemini mcp add -s user -e SQLACC_ACCESS_KEY='<SQLACC_ACCESS_KEY>' -e SQLACC_SECRET_KEY='<SQLACC_SECRET_KEY>' sql-account-mcp npx -- -y sql-account-mcp

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "sql-account-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "sql-account-mcp"
      ],
      "env": {
        "SQLACC_ACCESS_KEY": "<SQLACC_ACCESS_KEY>",
        "SQLACC_SECRET_KEY": "<SQLACC_SECRET_KEY>"
      }
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "sql-account-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "sql-account-mcp"
      ],
      "env": {
        "SQLACC_ACCESS_KEY": "<SQLACC_ACCESS_KEY>",
        "SQLACC_SECRET_KEY": "<SQLACC_SECRET_KEY>"
      }
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "sql-account-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "sql-account-mcp"
      ],
      "env": {
        "SQLACC_ACCESS_KEY": "<SQLACC_ACCESS_KEY>",
        "SQLACC_SECRET_KEY": "<SQLACC_SECRET_KEY>"
      }
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "sql-account-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "sql-account-mcp"
      ],
      "env": {
        "SQLACC_ACCESS_KEY": "<SQLACC_ACCESS_KEY>",
        "SQLACC_SECRET_KEY": "<SQLACC_SECRET_KEY>"
      }
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "sql-account-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "sql-account-mcp"
      ],
      "env": {
        "SQLACC_ACCESS_KEY": "<SQLACC_ACCESS_KEY>",
        "SQLACC_SECRET_KEY": "<SQLACC_SECRET_KEY>"
      }
    }
  }
}
```

The AI Assistant docs only show command and args. If the env block is ignored, use Junie for this server.

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "sql-account-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "sql-account-mcp"
      ],
      "env": {
        "SQLACC_ACCESS_KEY": "<SQLACC_ACCESS_KEY>",
        "SQLACC_SECRET_KEY": "<SQLACC_SECRET_KEY>"
      }
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "sql-account-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "sql-account-mcp"
      ],
      "env": {
        "SQLACC_ACCESS_KEY": "<SQLACC_ACCESS_KEY>",
        "SQLACC_SECRET_KEY": "<SQLACC_SECRET_KEY>"
      }
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "sql-account-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "sql-account-mcp"
      ],
      "env": {
        "SQLACC_ACCESS_KEY": "<SQLACC_ACCESS_KEY>",
        "SQLACC_SECRET_KEY": "<SQLACC_SECRET_KEY>"
      }
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, all 11 tools only read data. From the server's own tool labels and tool names; not verified by us.

- `list_customers` (name suggests: reads): Customers from Maintain Customer, by code or company name
- `get_customer` (name suggests: reads): Get a single customer by code or company name
- `list_stock_items` (name suggests: reads): Stock items, with UOM and price lines
- `get_stock_item` (name suggests: reads): Get a single stock item
- `list_sales_invoices` (name suggests: reads): Sales invoices by customer, number or date, with item lines
- `get_sales_invoice` (name suggests: reads): Get a single sales invoice
- `list_purchase_invoices` (name suggests: reads): Purchase invoices by supplier, number or date, with item lines
- `get_purchase_invoice` (name suggests: reads): Get a single purchase invoice
- `list_customer_payments` (name suggests: reads): Payments received from customers
- `list_agents` (name suggests: reads): Sales agents
- `query_records` (name suggests: reads): Query any supported record type with exact-match filters

## FAQ

### Can SQL Account (read-only) change data in SQL Account?

No. It only sends HTTP GET requests and exposes no tools that write records.

### What do I need before installing SQL Account (read-only)?

SQL Account 5.2025.1038.875 or newer with the SQL Account API Service set up, an API user with an access key and secret key, and Node.js 18.17 or newer.

### How many records does each call return?

The SQL Account API returns at most 50 records per call, and the tools page through results with an offset.

### Which AI clients can use SQL Account (read-only)?

Claude Desktop, Claude Code, Cursor, Windsurf and other MCP clients are supported, and it can also run in Docker.

### Is SQL Account (read-only) free?

Yes. SQL Account (read-only) is open source, so you can use and self-host it for free.

### How do I add SQL Account (read-only) to Claude Code?

Run this command in your terminal: claude mcp add sql-account-mcp --env SQLACC_ACCESS_KEY='<SQLACC_ACCESS_KEY>' --env SQLACC_SECRET_KEY='<SQLACC_SECRET_KEY>' -- npx -y sql-account-mcp

### What are the best alternatives to SQL Account (read-only)?

The closest alternatives to SQL Account (read-only) are AutoCount Cloud Accounting (read-only), Mobile Accounting, AccountsConnector for Sage Accounting, sevdesk (unofficial) and Eqvitta MCP.

## Where this comes from

- Description: written from the project's README, the project's website and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [AutoCount Cloud Accounting (read-only)](https://ai-powered.com/mcp/autocount-cloud-accounting-read-only): AutoCount Cloud Accounting (read-only) is an open-source MCP server for finance and payments.
- [Mobile Accounting](https://ai-powered.com/mcp/mobile-accounting): Mobile Accounting is a freemium MCP server for finance and payments.
- [AccountsConnector for Sage Accounting](https://ai-powered.com/mcp/accountsconnector-for-sage-accounting): AccountsConnector for Sage Accounting is an MCP server for finance and payments.
- [sevdesk (unofficial)](https://ai-powered.com/mcp/sevdesk-unofficial): sevdesk (unofficial) is an open-source MCP server for finance and payments.
- [Eqvitta MCP](https://ai-powered.com/mcp/eqvitta-mcp): Eqvitta MCP is an MCP server for finance and payments.
- [SAMA Entreprise](https://ai-powered.com/mcp/sama-entreprise): SAMA Entreprise is an MCP server for accounting and tax.
- [Red by Big Red Cloud](https://ai-powered.com/mcp/red-by-big-red-cloud): Red by Big Red Cloud is an open-source MCP server for finance and payments.
- [Exact Online](https://ai-powered.com/mcp/exact-online-2): Exact Online is a freemium MCP server for accounting and tax.

---
Source: https://ai-powered.com/mcp/sql-account-read-only
