
这是一个模型上下文协议(MCP)服务器,Fivetran用户可以克隆、配置并在自己的环境中运行。
概览
值得了解的四点:- 清单包含 Fivetran API 中的所有端点,因此系统密钥和用户 API 密钥操作在你授予的任何FIVETRAN_SCOPE内都是可访问的。设置推荐的拒绝列表以保持它们无法触及;服务器在启动时警告,而任何请求仍然可调用。system-keys:write 和 system-keys:delete 是有效的 DISALLOWED_ACTIONS 令牌。- 在 0.3.2 中修复——每个服务的连接器配置默默缺少共享的 schema_format_* 参考,而这些引用是整个配置中唯一无条件的必需字段。如果通过 get_schema/connections_write 创建连接器失败或返回不完整,现在已修复。- 通过 --transport streamable-http(或 MCP_TRANSPORT),而不仅仅是 stdio。参见 HTTP 运行(高级版)。- 实际令牌验证尚未实现,因此目前可流式HTTP模式仅以临时头部转发形式工作(保持FIVETRAN_AUTH_ISSUER未设置)。
概述(AI 翻译)
从0.3版本升级? 有四件事值得了解:
- 凭证端点由
DISALLOWED_ACTIONS管理。 清单包含Fivetran API中的所有端点,因此系统密钥和用户API密钥操作在你授予的任何FIVETRAN_SCOPE内均可访问。设置推荐的拒绝列表以保持它们不可访问;服务器启动时会警告,而任何端点仍可调用。system-keys:write和system-keys:delete是有效的DISALLOWED_ACTIONS令牌。get_schema(service=X)以前会丢弃所需的目的模式字段。 在 0.3.2 中修复——每服务连接器配置中默默缺少共享的schema_format_*引用,而该引用包含整个配置中唯一的无条件required字段。如果通过get_schema/[connections_write创建连接器失败或返回不完整,现在已经修复了。- **服务器现在可以通过
--transport streamable-http(或MCP_TRANSPORT)作为托管HTTP服务器运行,而不仅仅是stdio。参见“通过HTTP运行(高级版)。- **OAuth 资源服务器支持仅限于基础设施支架,尚未启用。
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Fivetran MCP Server
Upgrading from version 0.3? Four things worth knowing:
- Credential endpoints are governed by
DISALLOWED_ACTIONS. The manifest carries every endpoint in the Fivetran API, so system-key and user-API-key operations are reachable within whateverFIVETRAN_SCOPEyou grant. Set the recommended denylist to keep them out of reach; the server warns at startup while any remain callable.system-keys:writeandsystem-keys:deleteare validDISALLOWED_ACTIONStokens.get_schema(service=X)used to drop required destination-schema fields. Fixed in 0.3.2 — per-service connector configs were silently missing the sharedschema_format_*refs, which carry the only unconditionalrequiredfield in the whole config. If connector creation throughget_schema/connections_writeever failed or came back incomplete, that’s now fixed.- The server can now run as a hosted HTTP server, via
--transport streamable-http(orMCP_TRANSPORT), instead of only stdio. See Running over HTTP (advanced).- OAuth resource-server support is infrastructure scaffolding only, not yet functional. Real token verification isn’t implemented yet, so streamable-http mode today only works in its interim header-forwarding form (leave
FIVETRAN_AUTH_ISSUERunset).
An MCP server that you can use to interact with your Fivetran environment. It allows you to ask read-only questions like “when was the last time my postgres connection completed a sync?” and “are any of my connections broken?” Set FIVETRAN_SCOPE to read/write or read/write/delete to unlock write and delete operations, and use DISALLOWED_ACTIONS to carve exceptions out of that tier (for example, system-keys:write to deny both write and delete operations on system keys). Write and delete operations are marked with advisory instructions telling the client model to confirm with you before execution; the server does not enforce confirmation.
Using the tools
The server exposes two discovery tools plus one execution tool for each allowed resource/action pair:
list_endpointsdiscovers API endpoints. Call it without arguments for category counts, withcategoryto list a resource such asconnections, or withsearchto find endpoints by name, summary, or path.get_schemareturns the parameters, request body, and response schema for an endpoint. For connection and destination create/modify endpoints, passservice(for example,postgres) to include the service-specific configuration fields._tools execute endpoints in that group. Examples includeconnections_read,connections_write, anddestinations_delete. Pass the endpointnameplus anypath_params,query, orbodyvalues required by its schema.
安装
uvx --from git+https://github.com/fivetran/fivetran-mcp fivetran-mcp配置
{
"mcpServers": {
"fivetran": {
"command": "uvx",
"args": ["--from", "git+https://github.com/fivetran/fivetran-mcp", "fivetran-mcp"],
"env": {
"FIVETRAN_API_KEY": "your-api-key",
"FIVETRAN_API_SECRET": "your-api-secret",
"FIVETRAN_SCOPE": "read",
"DISALLOWED_ACTIONS": "system-keys:read,users:read:get_user_api_key,users:read:list_api_keys,users:write:create_user_api_key,users:write:rotate_user_api_key,users:delete:delete_user_api_keys"
}
}
}
}