使用说明
whatt.io MCP Server
A Model Context Protocol (MCP) server for integrating Language Models with the whatt.io API.
Installation
-
Install dependencies:
npm install -
Build the server:
npm run build
Configuration
Set the environment variable WHATTIO_API_KEY before running the server or connecting an MCP Client to it.
export WHATTIO_API_KEY="your-whatt-io-api-key"
You can also override the base URL (defaults to https://api.whatt.io/v1):
export WHATTIO_API_BASE_URL="https://analytics.whattio.com/api"
Running the Server
Run the server natively via the CLI interface (stdio):
npm start
Using Model Context Protocol Inspector
To debug and test tools interactively:
npx @modelcontextprotocol/inspector node build/index.js
Available Tools
get_whattio_data: Send GET requests to any whatt.io API endpoint.
