simplesat-mcp

simplesat-mcp

MCP server for Simplesat, enabling search of CSAT/NPS survey answers via the Simplesat V1 API. Provides a single tool to query customer feedback with optional filters like date range and filter criteria.

Category
访问服务器

README

simplesat-mcp

MCP server for Simplesat (CSAT/NPS customer feedback survey platform). Exposes the Simplesat V1 API's answer search as an MCP tool.

Naming note: Simplesat has two generations of integration in MSPbots — a legacy 2021-era integration (subjectCode=SIMPLESAT, GET /api/answers/, a token field) and the current one this server targets (subjectCode=SIMPLESATV1, POST /api/v1/answers/search, an apiKey field). Only the current V1 API is covered here.

Overview

  • Stateless HTTP service. No credentials are ever persisted — each request supplies its own API key via a header, used only for the lifetime of that single request.
  • Supports concurrent requests; per-request credential isolation is done via Python contextvars, not a global/shared client instance.
  • Entry points: POST /mcp (MCP protocol) and GET /health (health check).
  • Default port: 8080 (configurable via MCP_HTTP_PORT).

Authentication

Simplesat uses a single static API key — no login or token exchange:

X-Simplesat-Token: <api key>

Already fully stateless by the vendor's own design; nothing is cached across MCP calls.

HEADER 授权参数说明

Header 类型 是否必填 默认值 枚举值 字段描述 Example
X-Simplesat-Api-Key string Simplesat API Key(Account Settings -> API Keys 生成),原样转发为上游 X-Simplesat-Token 请求头 ssat_170927_a1b2c3d4e5f6g7h8i9j0

Missing the header returns 401:

{
  "error": "Missing credentials",
  "message": "This server requires the X-Simplesat-Api-Key header",
  "required_headers": ["X-Simplesat-Api-Key"],
  "optional_headers": []
}

An invalid key surfaces as a tool-level error (e.g. HTTP 403: {"detail": "Invalid Token."}), not an HTTP-level error from this server.

Environment Variables

Variable 类型 是否必填 默认值 说明
MCP_HTTP_PORT int 8080 HTTP 监听端口
MCP_HTTP_HOST string 0.0.0.0 HTTP 监听地址
SIMPLESAT_BASE_URL string https://api.simplesat.io Simplesat API 基础 URL

MCP Endpoint

  • POST /mcp — MCP protocol (streamable HTTP transport)
  • GET /health — health check, returns {"status": "ok", "service": "simplesat-mcp", "transport": "http"}

Tool List

Tool 功能 参数
simplesat_search_answers 搜索问卷调查回答(CSAT/NPS 评分与评论) pagepage_sizestart_dateend_datefilter_keyfilter_valuesfilter_comparison(均可选)

Responses are the vendor's raw JSON, pretty-printed, returned as-is.

测试示例

# Health check
curl -s http://localhost:8080/health

# Call a tool via the MCP protocol (streamable HTTP) — requires an
# initialize handshake first per the MCP spec; abbreviated example below
# shows the tool-call request body only:
curl -s -X POST http://localhost:8080/mcp \
  -H "X-Simplesat-Api-Key: <your-api-key>" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -H "mcp-session-id: <session-id-from-initialize>" \
  -d '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "tools/call",
    "params": {
      "name": "simplesat_search_answers",
      "arguments": {}
    }
  }'

Live-verified (2026-07-31) against a real Simplesat account: simplesat_search_answers called end-to-end through this running server with the real API key returned 200 and the vendor's correctly-shaped response ({"next": null, "previous": null, "count": 0, "answers": []}) — this particular test account has zero survey answers recorded yet, confirmed as a genuine empty result (not an auth failure) since the response shape exactly matches the vendor's documented schema. A separate test with a deliberately invalid API key correctly surfaced Error: Simplesat API error: HTTP 403: {"detail": "Invalid Token."}, confirming the auth failure path works as expected.

API Reference

  • Public, no login required: https://developer.simplesat.io/api (full V1 API reference, including the Search Answers operation used here)

Known Gaps

  • Scope is exactly the 1 method MSPbots' current integration uses (Search answers) — the Simplesat V1 API also covers Customers, Team members, Responses, Surveys, and Questions, plus Get answer by ID and Update answer by ID; those are out of scope here.
  • simplesat_search_answers could not be verified with non-empty results — the test account has zero recorded survey answers. Auth and request-shape correctness were confirmed via (1) a 200 response matching the vendor's exact documented response schema, and (2) a separate invalid-key test correctly returning a 403 Invalid Token error.
  • The filter_key/filter_values/filter_comparison parameters expose only a single filter object — the vendor's API technically accepts an array of filter objects for compound filtering, but MSPbots' own usage of this integration sends no filters at all, so this server keeps the tool signature simple rather than exposing arbitrary multi-filter arrays.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选