@datafast/mcp-server
Allows Codeium's Windsurf IDE to query DataFast analytics through MCP tools.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@@datafast/mcp-serverhow many visitors did I get this month?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
@datafast/mcp-server
An MCP (Model Context Protocol) server that exposes DataFast analytics as tools for AI assistants like Claude, Cursor, and others.
Ask your AI assistant questions like:
"How many visitors did I get this week?"
"What are my top referrers this month?"
"Show me revenue by country for Q4"
"Which pages have the highest conversion rate?"
"What's my real-time visitor count?"
Requirements
Node.js 18.0.0 or later
A DataFast account with an API key
Related MCP server: Google Analytics MCP Server
Setup
1. Get your API key
Go to your DataFast dashboard → Settings → API Keys and create a new key.
2. Install
npm install @datafast/mcp-server3. Configure your AI client
Cursor
Add this to your .cursor/mcp.json:
{
"mcpServers": {
"datafast": {
"command": "npx",
"args": ["-y", "@datafast/mcp-server"],
"env": {
"DATAFAST_API_KEY": "df_your_api_key_here"
}
}
}
}Claude Desktop
Add this to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):
{
"mcpServers": {
"datafast": {
"command": "npx",
"args": ["-y", "@datafast/mcp-server"],
"env": {
"DATAFAST_API_KEY": "df_your_api_key_here"
}
}
}
}Windsurf
Add this to your ~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": {
"datafast": {
"command": "npx",
"args": ["-y", "@datafast/mcp-server"],
"env": {
"DATAFAST_API_KEY": "df_your_api_key_here"
}
}
}
}Available Tools
Analytics
Tool | Description |
| High-level metrics: visitors, sessions, bounce rate, revenue, conversion rate |
| Time series data (hourly/daily/weekly/monthly) for trend analysis |
| Top pages by visitor count with revenue attribution |
| Top traffic referrers with revenue attribution |
| Visitors and revenue by country |
| Visitors and revenue by city |
| Visitors and revenue by region/state |
| Visitors and revenue by browser |
| Visitors and revenue by device type |
| Visitors and revenue by OS |
| UTM campaign performance data |
| Goal completion data |
| Visitors and revenue by hostname |
| Current real-time visitor count |
| Real-time visitor locations with recent events |
| Website metadata (domain, timezone, currency) |
Visitor Details
Tool | Description |
| Detailed visitor profile with identity, activity, and conversion predictions |
Tracking
Tool | Description |
| Track a custom goal completion |
| Track a payment event for revenue attribution |
| Link a visitor to a user in your system |
Data Management
Tool | Description |
| Delete goal events by date range, visitor, or goal name |
| Delete payment events by transaction ID, visitor, or date range |
Filtering
All analytics tools support powerful filtering:
UTM parameters:
utm_source,utm_medium,utm_campaign,utm_term,utm_contentTraffic sources:
ref,source,via,referrerContent:
page,entry_page,hostnameGeography:
country,region,cityTechnology:
browser,os,deviceDate range:
startAt,endAt(ISO 8601)Pagination:
limit,offsetTimezone:
timezone(IANA format)
Environment Variables
Variable | Required | Description |
| Yes | Your DataFast API key (starts with |
| No | API base URL (defaults to |
Development
# Install dependencies
npm install
# Build
npm run build
# Type check
npm run typecheck
# Run locally
DATAFAST_API_KEY=df_your_key node dist/index.jsTroubleshooting
"DATAFAST_API_KEY environment variable is required"
Ensure your AI client (Cursor, Claude Desktop, etc.) is configured to pass the DATAFAST_API_KEY in the env object. The key must start with df_.
"Invalid API key format"
DataFast API keys start with df_. Verify you copied the full key from the DataFast dashboard → Settings → API Keys.
MCP server not appearing in Cursor
Restart Cursor after adding the MCP config
Ensure the config file is at
.cursor/mcp.json(or the path your Cursor version expects)Check that
npxcan resolve@datafast/mcp-server(try runningnpx -y @datafast/mcp-serverin a terminal withDATAFAST_API_KEYset)
API errors
If you see DataFast API error (401), your API key may be invalid or expired. Generate a new key from the dashboard. For DataFast API error (403), check that your API key has the required permissions.
License
MIT
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityFmaintenanceEnables AI assistants to interact with Umami Analytics for both Cloud and self-hosted instances. It provides tools to retrieve website statistics, visitor metrics, pageview trends, and real-time active user counts.Last updated51MIT
- AlicenseAqualityCmaintenanceEnables LLMs to interact with Google Analytics Admin and Data APIs to retrieve account summaries, property details, and custom metrics. It allows users to run core and real-time reports to analyze website performance and configuration via natural language.Last updated71Apache 2.0
- AlicenseAqualityAmaintenanceProvides AI assistants with read access to Clamp analytics data including pageviews, visitors, referrers, and custom events. Enables traffic analysis, conversion funnel evaluation, and metric alerts through natural language queries.Last updated33972MIT
- AlicenseAqualityBmaintenanceExposes Rybbit Analytics as MCP tools for querying site traffic, page views, visitor sessions, and live visitor counts through natural language.Last updated9MIT
Related MCP Connectors
AI access to Hitsteps analytics, live visitors, uptime, goals, alerts, and chats.
Privacy-first web analytics. Query pageviews, referrers, trends, and AI insights.
Revenue-first analytics installed and verified by AI agents through Talivia
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Marc-Lou-Org/datafast-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server