Skip to content
Sections · AI tools (MCP)

Guide

Connect AI tools (MCP)

Let AI assistants, agents and automation tools read your workspace's reports through Reevio's MCP server.

Reevio has a built-in MCP (Model Context Protocol) server. Any AI assistant, agent or automation tool that speaks MCP can connect to it and read your workspace's reports. The connection is read-only: it can never create or change records.

AI tool connections are part of your workspace's plan. If Reevio says your plan doesn't include them, contact Reevio.

Two ways to connect

Sign in API token
For AI assistants and any tool that supports MCP sign-in (OAuth) Scripts, scheduled reports and tools that let you set an Authorization header
Who sets it up Each person, for their own account An administrator, for an integration user
What it reads The report areas the person approves, never more than their role allows The scopes ticked on the token, never more than its user's role allows
How it ends Disconnect it, or leave it unused for 30 days Revoke the token, or let it expire

Both use MCP over Streamable HTTP. Some tools call this transport just "HTTP".

Your Reevio address

Your tool talks to one address, your MCP endpoint:

https://<your-reevio-domain>/mcp/reevio

Replace <your-reevio-domain> with the address you open Reevio at in your browser. That may be reevio.app or your company's own Reevio domain. Keep /mcp/reevio at the end, and always use https:// so the connection travels encrypted.

Sign in from the AI tool

  1. Get the permission. Administrators can connect AI tools already. Anyone else needs a role with AI → Connect AI tools, which an administrator grants under Administration → Roles.
  2. Add the address in the tool. Add a remote MCP server (some tools call it a custom connector or app) with the address above. Enter only the address: no token, no client ID.
  3. Sign in and approve. The tool opens Reevio in your browser. Sign in as usual, check which app is asking, choose the report areas it may read, and select Approve. You're sent back to the tool.

The tool then reads reports as you, limited to the areas you approved. It keeps working while you use it. After 30 days without use, sign in again.

To see or disconnect your tools, go to Settings → Profile → AI tools. Administrators see every connection in the workspace under Administration → API Tokens, in the options menu, under Connected AI tools.

Use an API token

Steps 1 to 3 are done by an administrator of your Reevio workspace. Step 4 is done by whoever sets up the tool.

Step 1: Create an integration user

Give the connection its own user instead of a person's login. Otherwise it breaks when that person leaves or changes role, and you can't cut it off without touching their account.

  1. Go to Administration → Users and create a user, for example with the username ai-integration.
  2. Set a long random password. Nobody needs to sign in as this user.
  3. Under roles, choose Administrator for full read access to reports. Pick a narrower role if the tool needs less.
  4. Leave Restrict access by working hours off, so the tool also works at night and at weekends.

The user must belong to your workspace. Reevio platform (Super Admin) accounts are refused.

Step 2: Create the API token

The token is the tool's key to Reevio. It acts as the user from Step 1 and can never do more than that user's role allows.

  1. Go to Administration → API Tokens and create a token.
  2. User: the integration user from Step 1. Label: the name of the tool, so you can tell tokens apart later.
  3. Scopes: tick every scope whose name ends in .read. The MCP scopes are spread over several groups. Business analysis (MCP) holds only the extras, and the read scopes for invoices, orders, stock, payments and more sit in their own groups. Use each group's top checkbox to speed this up, then untick anything that doesn't end in .read (.create, .update, .export and similar). The MCP server never uses those.
  4. Expires in (days): 365 is a sensible default. Leaving it empty makes a token that never expires.
  5. Allowed IP addresses: fill this in only if your tool always calls out from the same IP address, as a server usually does. A tool running on a laptop usually doesn't, so leave it empty.
  6. Save, then copy the token straight away. Reevio shows it only once.

Send the token to whoever sets up the tool privately, for example through a password manager share, never in a group chat or ordinary email. You can change the scopes or expiry later from the token's edit page, and the connection keeps working.

Step 3: Test the token

Run this in a terminal (macOS, Linux, or Git Bash on Windows) before you set up the tool. Replace the domain and YOUR_TOKEN with your own values:

curl -s -X POST https://<your-reevio-domain>/mcp/reevio \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'

It works when the reply names four tools: describe-system, list-reports, run-report and show-chart. Any other reply is covered under Troubleshooting below. With no terminal handy, Step 4 is also a test: if your tool lists the same four tools, the token works.

Step 4: Connect your tool

A tool connecting with a token needs these three settings:

Setting Value
Transport Streamable HTTP
URL https://<your-reevio-domain>/mcp/reevio
Header Authorization: Bearer YOUR_TOKEN

Where they go depends on the tool: a settings screen, or a configuration file. Many tools take a configuration shaped like this one. The key names vary, so check your tool's MCP documentation:

{
  "mcpServers": {
    "reevio": {
      "type": "http",
      "url": "https://<your-reevio-domain>/mcp/reevio",
      "headers": { "Authorization": "Bearer YOUR_TOKEN" }
    }
  }
}

If the configuration file is shared or kept in version control, keep the token in an environment variable or your tool's secret store instead of in the file.

An AI assistant that answers questions

Use this when people ask questions in their own words. The AI model chooses and calls the tools itself, and Reevio tells it how to use them when it connects, so usually nothing else is needed. If your tool lets you add instructions for the model, this helps: "For business questions use the Reevio tools. Call describe-system first, then list-reports to see what each report offers, then run-report. Never guess figures."

show-chart draws a report as an interactive chart in tools that can display MCP apps. Tools that can't receive the same data as run-report, so you can leave it on, or turn it off if your tool lets you choose which tools to include.

A fixed report from a script or automation

Use this when you want the same report every day or week, for example yesterday's sales emailed each morning. Call run-report directly. No AI model runs, so it adds no AI cost and returns the same shape every time. This request returns the top 10 products by sales value for September:

curl -s -X POST https://<your-reevio-domain>/mcp/reevio \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"run-report","arguments":{"report":"product_sales","metric":"billed_base","group_by":"product","date_from":"2026-09-01","date_to":"2026-09-30","limit":10}}}'

The report comes back as JSON text in result.content[0].text. If your automation tool has its own MCP step, choose the run-report tool there and give it the same arguments. For rolling dates, work out date_from and date_to when the job runs. To see every report name, metric and filter available to you, call the list-reports tool once.

Limits

  • Read-only. The connection can read reports but can't create, change or delete anything in Reevio.
  • 30 requests a minute per Reevio user, shared by all that user's tokens. One question to an AI assistant usually takes 3 to 5 requests. Over the limit, Reevio answers 429 with a Retry-After header. Wait that many seconds before retrying.
  • Up to 20 rows per page (10 by default, set with limit). Longer results include a next_page number. Send the same request again with page set to it.
  • What reports cover: sales, purchasing, stock, accounting, cash and bank, and HR summaries, but only for modules your workspace has enabled.
  • Never visible: product costs in the product lookup, payroll settlement details, leave entitlements, private personnel documents and credentials.
  • Your AI model sees the data. When an AI assistant answers questions, report results are sent to the AI provider behind it. With an Administrator token, that can include profit, balances and payroll totals. Check this fits your data policy before you go live.

Troubleshooting

What you see Cause Fix
"Your workspace's plan doesn't include AI tool connections", or 403 module_disabled AI tool connections aren't part of your plan Contact Reevio to add them.
"Your role isn't allowed to connect AI tools" Signing in needs the Connect AI tools permission An administrator adds AI → Connect AI tools to your role.
401 "This connection has ended or belongs to another address" The connection was disconnected, unused for 30 days, or used at a different Reevio address Connect the tool again from the tool itself.
401 "A valid bearer API token is required." The token is missing, mistyped, expired or revoked Paste the whole token exactly as copied, after Bearer and a space. If it expired or was revoked, create a new one (Step 2).
403 "This token cannot access any assistant report." The token has no report scopes, or belongs to a Super Admin account Edit the token and tick the .read scopes (Step 2). Use a user from your own workspace.
403 "This API token cannot be used from this IP address." The tool's IP address isn't in the token's allowlist Add the tool's outgoing IP under Allowed IP addresses, or empty that field.
403 "Access is outside your allowed working hours." The integration user has a working-hours restriction Turn off Restrict access by working hours for that user (Step 1).
403 "This user account is not active." The integration user was deactivated Reactivate the user under Administration → Users.
404 Not Found Wrong address Check the domain, and that the URL ends in /mcp/reevio.
429 Too Many Requests More than 30 requests in a minute Wait for the seconds in Retry-After. Space out scheduled jobs.
A report is missing from list-reports Its scope isn't ticked, the role lacks that permission, or the module is off for your workspace Tick the scope on the token, and check the user's role and your enabled modules.