Coupler Analytics

Coupler Analytics

Analytics Coupler.io MCP bridges your business data to AI for fast and smart analysis.

Category
访问服务器

README

Lint & Test

Coupler.io official MCP server

The Coupler.io MCP Server is a Model Context Protocol (MCP) server that provides seamless integration with Coupler.io APIs. With Coupler.io MCP Server, you can analyze multi-channel marketing, financial, sales, e-commerce, and other business data within Claude by connecting to your Coupler.io data flows — query marketing, sales, and finance metrics from hundreds of sources. Fetch and transform raw data from platforms like Google Ads, Facebook, HubSpot, and Salesforce into actionable intelligence for smarter, faster decision-making with accurate, up-to-date business information.

Use Cases

Get data from your Coupler.io data flows and ask your AI tool questions about it, like you would ask your fellow data analyst:

Marketing:

  1. What's our overall customer acquisition cost across all paid channels this quarter compared to last quarter? I need this for the board meeting.
  2. Show me the ROI breakdown by marketing channel for the past 6 months. I need to reallocate our annual budget.
  3. Which campaigns are contributing most to our pipeline revenue? I want to double down on what's working.

Sales:

  1. Can you pull the sales pipeline report for this month? I need to see how many deals are in each stage and the total value at each stage.
  2. What are our conversion rates from lead to opportunity and from opportunity to closed-won for the last quarter? How do they compare to our targets?
  3. How many deals are expected to close this month based on their probability scores? What's our forecasted revenue vs our monthly target?

Finance:

  1. Check the profit for this quarter, compare it to last quarter, and provide a breakdown by department.
  2. Could you provide a cash flow report for the last 30 days, including all incoming and outgoing transactions?
  3. Share the current accounts receivable status and tell me how many overdue invoices we have and which customers owe the most.

Prerequisites

  1. Install Docker to run the server in a container.
  2. Make sure Docker is running.
  3. Get a Coupler.io Personal Access Token.

OR

Build a .dxt file using the command below and use it to install the local MCP.

Running the server

Claude Desktop

{
  "mcpServers": {
    "coupler": {
      "command": "docker",
      "args": [
        "run",
        "--pull=always",
        "-e",
        "COUPLER_ACCESS_TOKEN",
        "--rm",
        "-i",
        "ghcr.io/railsware/coupler-io-mcp-server"
      ],
      "env": {
        "COUPLER_ACCESS_TOKEN": "<your_token>"
      }
    }
  }
}

NOTE: "--pull=always" will ensure you always have the latest image by pulling it from the registry. Remove this line if you're offline or if you specifically want to use the image you've already pulled previously.

Tools

Data flows

  • get-data - Gets the result of a data flow run as a SQLite file and executes a read-only query on it. To get the data from a Coupler.io data flow, you need the data flow to have an AI destination.

    • dataflowId: Data flow ID (string, required)
    • executionId: Data flow run ID (string, required)
    • query: Query to run on the data flow SQLite file (string, required)
  • get-schema - Gets the data flow schema file. Currently, only data flows built from a dashboard or dataset template are supported.

    • dataflowId: Data flow ID (string, required)
    • executionId: Data flow run ID (string, required)
  • list-dataflows – Gets the list of data flows that have an AI destination.

    • dataflowId: Data flow ID (string, required)
    • executionId: Data flow run ID (string, required)
  • get-dataflow – Gets the metadata about the data flow, such as sources, data connections, last successfull execution, and error details (if present).

    • dataflowId: Data flow ID (string, required)
    • executionId: Data flow run ID (string, required)

Development

Install NodeJS:

asdf plugin add nodejs https://github.com/asdf-vm/asdf-nodejs.git
asdf install

Install dependencies:

npm install

Install Git hooks:

lefthook install

Set environment variables:

cp .env.example .env.local

Work with a raw server

Run the MCP server:

# Use `--silent` flag to prevent NPM logging to STDOUT which breaks server transport
npm run --silent dev

Run MCP server inspector for debugging

Caveat: make sure to keep only a single inspector tab open at all times, until this inspector bug is fixed.

# Run this and follow the instructions to view the inspector
npm run inspect:node

Tail logs

Our local MCP server uses STDIO transport, therefore logs must go to a file. This may come in handy when debugging.

tail -f log/development.log | npx pino-pretty

You can also optionally capture STDIO messages in the log file by setting LOG_STDIO=1 when running the server. If you're debugging a containerized server, you'd likely want to mount a dir at /app/log to be able to access the logs it generates.

Working with the development Docker image

Build Docker image for development:

bin/build_image

You can now run the container with the MCP inspector for debugging in UI mode:

npm run inspect:docker

Or run the container within Claude Desktop, configured with your .env.local file in the project. Grab the absolute path to your env file realpath .env.local. Navigate to Settings > Developer > Edit Config. Edit your claude_desktop_config.json, add an entry for our server:

{
  "mcpServers": {
    "coupler-io-mcp-server-development": {
      "command": "docker",
      "args": [
        "run",
        "--env-file",
        "/path/to/your/.env.local",
        "--add-host",
        "storage.test=host-gateway",
        "--add-host",
        "lvh.me=host-gateway",
        "--rm",
        "-i",
        "coupler-io-mcp-server-development"
      ]
    }
  }
}

Or just run the image with Docker:

docker run --env-file .env.local \
  --add-host storage.test=host-gateway \
  --add-host lvh.me=host-gateway \
  --rm \
  -i \
  coupler-io-mcp-server-development

Using MCP inspector

Use MCP inspector in CLI mode for smoke testing the server with a short feedback loop:

# List tools
npx @modelcontextprotocol/inspector --cli npm run dev --method tools/list

# Call list-dataflows tool
npx @modelcontextprotocol/inspector --cli npm run dev --method tools/call --tool-name list-dataflows

# Call get-schema tool
npx @modelcontextprotocol/inspector --cli npm run dev --method tools/call --tool-name get-schema --tool-arg dataflowId=<your data flow ID>

Testing the Docker image against Coupler.io staging

We build and publish a Docker image of our MCP server, tagged edge, on every push to the main branch.

Configure Claude Desktop to run the Docker container against Coupler.io staging. Navigate to Settings > Developer > Edit Config. Edit your claude_desktop_config.json, add an entry for the staging server:

{
  "mcpServers": {
    "coupler-io-mcp-server-staging": {
      "command": "docker",
      "args": [
        "run",
        "-e",
        "COUPLER_ACCESS_TOKEN",
        "--env",
        "COUPLER_API_HOST=https://app.couplerstaging.dev/mcp",
        "--rm",
        "-i",
        "ghcr.io/railsware/coupler-io-mcp-server:edge"
      ],
      "env": {
        "COUPLER_ACCESS_TOKEN": "<your_coupler_access_token_from_staging>"
      }
    }
  }
}

[Optional] Enable logging for debugging by adding the following args:

        "--env",
        "LOG_LEVEL=debug",
        "--env",
        "LOG_STDIO=1",

Building and pushing a release image

The development cycle looks like this:

  • open a PR with changes
  • use the pr-N-tagged image to debug and test your changes
  • merge the PR to main
  • test the edge image
  • build and push a release image tagged as latest

To build and push a release image:

You should now be able to smoke-test the release image.

# Pull the `latest` image
docker pull ghcr.io/railsware/coupler-io-mcp-server

Run the release image with Claude Desktop and other supported clients.

Claude Desktop extension (DXT)

Build & self-sign

bin/build_dxt # => dxt_output/coupler-mcp.dxt
npm run dxt:selfsign

You can now either install the .dxt file or use the contents of dxt/ dir to load unpacked extension from Developer menu.

License

This project is licensed under the terms of the MIT open source license. Please refer to MIT for the full terms.

推荐服务器

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 模型以安全和受控的方式获取实时的网络信息。

官方
精选