MCP connector for AI assistants
Let an MCP client, such as an AI assistant app, read your Sayvara scores, themes, follow-up tickets and surveys with a read-only key.
What it does
Sayvara offers a read-only MCP server (Model Context Protocol). An MCP client, such as an AI assistant app, can connect to it and answer questions about your customer feedback: your NPS, CSAT and CES results, the themes customers talk about, your follow-up tickets and your surveys.
The connector only reads. No tool can change data in Sayvara.
The endpoint is:
https://api.sayvara.com/v1/mcpStatus
Available: the Sayvara platform team switches it on for your organisation. It is off until then. To have it switched on, write to support@sayvara.com.
While it is off, the endpoint answers 404 for your organisation's keys, as if it did not exist.
What you need first
- In Sayvara: the owner or admin role, to make an API key or an API client.
- The API access feature in your plan. If your trial has ended, the connector still reads.
- An MCP client that can connect to a remote server over HTTPS and send its own
Authorizationheader.
Set it up
1. In Sayvara: make a read-only key
The connector takes only keys whose every scope is a read scope. A key that can also write anything, for example Send events, is refused.
With an API key (simplest):
- In the menu, go to Developer and select New API key.
- Name: for example
AI assistant. - Under What the key may do, tick Read answers and nothing else.
- Choose when the Key ends, then select Make key.
- Copy the key now. It is shown only once.
With an API client (if you also want list_surveys, or a list of allowed IP addresses):
- Go to Settings > API access and, under API clients, select New client.
- Tick Read responses, and Read surveys if you want
list_surveys. Tick no other scope. - Your client exchanges the client id and secret for an access token. See Authentication.
- An access token lasts at most one hour (the Token lifetime you chose), so your MCP client must get a new one from the token URL itself. If your client only takes a fixed header, use an API key.
The connector reads as the person who made the key, with what that person can see today. If that person sees only some branches, the AI client sees only those branches. If that person is no longer an active member, the key reads nothing.
2. In your MCP client: connect
Add a remote MCP server with these settings:
| Setting | Value |
|---|---|
| Server URL | https://api.sayvara.com/v1/mcp |
| Transport | Streamable HTTP |
| Header | Authorization: Bearer <your API key or access token> |
To check the key from a terminal, list the tools:
curl -X POST "https://api.sayvara.com/v1/mcp" \
-H "Authorization: Bearer $SAYVARA_API_KEY" \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'SAYVARA_API_KEY stands for your own key. Keep the key in your MCP client's settings only. Never put it in a web page.
Good to know:
- Each request carries the key. The server keeps no session, and it answers with one JSON body, not an event stream.
- Supported protocol versions:
2025-06-18,2025-03-26and2024-11-05. - Send
Accept-Language: arto get the tool titles and descriptions in Arabic. Tool names, such asget_results, stay the same in both languages, and field names in the answers stay in English.
Tools
All dates are in UTC. from is included and to is not. Each answer comes as JSON text and as structured content.
| Tool | Needs the scope | What you give | What you get back |
|---|---|---|---|
get_results |
responses.read |
from, to (at most 366 days apart); optional surveyId, orgUnitId, channel, and groupBy: none, day, survey, org_unit or channel |
For each group: responses, NPS responses, promoters, detractors, NPS, CSAT responses, satisfied, CSAT average, CES responses, CES average. Up to 400 groups, with truncated when there are more |
get_themes |
responses.read |
from, to (at most 366 days apart); optional surveyId, orgUnitId |
The number of completed responses, and for each theme (wait, staff, price, app, resolution, delivery, branch): responses, how many were negative, and its share in per cent |
list_tickets |
responses.read |
Optional status, priority (high, medium, low), from, to (created), surveyId, orgUnitId, limit, cursor |
Follow-up tickets, newest first: reference, status, priority, metric, score, theme, root cause, due time, first response, resolved, closed and created times, with record ids |
list_surveys |
surveys.read |
Optional status, limit, cursor |
Your surveys: id, name, status, main metric, template and created time |
ask |
responses.read |
question (3 to 500 characters, Arabic or English); optional lang, from with to, surveyId, orgUnitId |
The answer of Ask Sayvara to the question: the answer text, the facts and numbers behind it, and a chart, without customer quotes |
On get_results, a promoter scored 9 or 10, a detractor 0 to 6, and "satisfied" means a CSAT of 4 or more.
The two list tools return pages of 25 rows. Set limit from 1 to 100. When there are more rows, the answer has a
nextCursor; send it as cursor to get the next page.
ask works like Ask Sayvara for the person who made the key. Every number comes
from your data.
Data shared
The tools send numbers, theme names, fixed codes, survey names and record ids. They never send customer comments,
answer text, ticket notes, or names, phone numbers or email addresses. ask answers leave out customer quotes.
Limits
- Read only. Only the five tools above exist.
- Each key: 60 requests a minute to this endpoint, within its 120 calls a minute across the whole API.
- Each organisation: 300 requests a minute to this endpoint, across all its keys.
- Tool calls: 60 a minute per key and 300 a minute per organisation. In a batch, each call counts on its own.
ask: the Ask budget of the person who made the key, 20 questions a minute and 200 a day. Questions asked on the Ask Sayvara screen count against the same budget.- A batch holds at most 20 messages, and only with protocol versions before
2025-06-18. - Date ranges of at most 366 days. A query that runs longer than 15 seconds stops.
- Calls from a web page in a browser are refused.
- Every message that passes the key check is recorded in your audit log, under the API key: the tool, the
outcome and the plain filters (dates, ids and codes). The text of an
askquestion is never stored there. Requests with a wrong key, or from a plan without API access, are refused before they are recorded.
Turn it off
- To stop one client: go to Developer and select Revoke on the key (or Revoke on the API client in Settings > API access). The client stops at once. To change keys without a gap, select Rotate on the key, or New secret on the API client.
- To turn the connector off for your whole organisation, write to
support@sayvara.com. The endpoint then answers
404for every key.
Test keys
A test key starts with svk_test_. It works with the connector only after the Sayvara platform team switches
MCP test mode on for your organisation. Until then the connector refuses test keys with 403
API_KEY_TEST_MODE, also while the connector itself is still switched off.
With test mode on, a test key reads your own organisation's data through get_results, get_themes,
list_tickets and list_surveys, exactly as a live key does, with no extra step. Reads change and send nothing.
ask is not offered to a test key, because each question uses AI model calls and your Ask budget: it is left out of
tools/list, and a call to it answers a tool error with the code API_KEY_TEST_MODE in _meta.code. Use a live key
for ask. Calls made with a test key are marked test in your audit log.
Test keys have their own, smaller organisation limits: 60 requests a minute to this endpoint and 60 tool calls a minute, across all test keys (each key keeps its own 60 a minute). They never count against the limits of your live keys, so a test script that loops cannot slow down your live AI clients.
Troubleshooting
Refusals of the whole request come as a JSON-RPC error, with the code in error.data.code.
| Message | What to do |
|---|---|
404 NOT_FOUND |
The connector is not on for your organisation. Write to support to have it switched on. |
INVALID_API_KEY: The API key is missing, wrong, revoked or expired |
Paste the key again after Bearer. Make a new key if it expired. |
API_KEY_SCOPE: This API key lacks the scope responses.read |
Make a key with Read answers (or Read responses on an API client) ticked. |
| This connector takes only API keys whose every scope is a read scope | Make a new key with read scopes only. |
ENTITLEMENT_REQUIRED |
Your plan does not include API access. Ask us about an upgrade. |
RATE_LIMITED (429) |
Too many requests. Wait the number of seconds in the Retry-After header. |
MCP_ORIGIN: Browser pages may not call this endpoint |
Connect from an MCP client on a computer or server, not from a web page. |
MCP_ACCEPT (406) |
The client must accept application/json. |
MCP_VERSION (400) |
Use one of the supported protocol versions. |
| Tool error: This key lacks the scope surveys.read | list_surveys needs an API client with Read surveys ticked. |
| Tool error: Invalid arguments | Check the dates (for example 2026-10-01), that from is before to, and that the range is at most 366 days. |
| Tool error: Too many tool calls, or Too many questions | Try again after the number of seconds in the message. |
| Tool error: The daily Ask budget of the person who created this key is used up | Ask again tomorrow. |
| Tool error: this key reads nothing | The person who made the key is no longer an active member. Make a new key. |
| Tool error: cursor is not valid | Send the nextCursor of the last page unchanged. |
-32603: The tool failed |
Narrow the dates or filters, or try again in a few minutes. |
403 API_KEY_TEST_MODE |
MCP test mode is not on for your organisation. Use a live key, or write to support. |
| Tool error: The tool ask does not run with a test key | Use a live key for ask. The other tools work with a test key. |
Was this page helpful?
Thanks. Need more help? Email support@sayvara.com