Clicky MCP Server
A Model Context Protocol (MCP) server for fetching traffic analytics data from the Clicky API.
Features
This MCP server provides five tools to interact with Clicky analytics:
get_total_visitors
- Get total visitors for a date rangeget_domain_visitors
- Get visitors filtered by referrer domainget_top_pages
- Get top pages for a date rangeget_traffic_sources
- Get traffic sources breakdown for a date rangeget_page_traffic
- Get traffic data for a specific page by URL
Setup
- Install dependencies:
- Build the project:
- Run the server:
Or for development:
Configuration
You need to provide your Clicky analytics credentials to use this server. Get these from your Clicky account:
- Get your credentials from your Clicky account:
- Site ID: Available in your site preferences
- Site Key: Available in your site preferences under "Preferences" → "Info"
- Configure credentials using one of these methods:Option 1: Environment variablesOption 2: Command line argumentsOption 3: .env file
⚠️ Security Note: Never commit your actual credentials to version control. The .env
file is already included in .gitignore
for security.
Using with Claude Desktop
To use this MCP server with Claude Desktop, you need to add it to your Claude Desktop configuration:
- Locate your Claude Desktop config file:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json
- Windows:
%APPDATA%\Claude\claude_desktop_config.json
- Linux:
~/.config/Claude/claude_desktop_config.json
- macOS:
- Add the MCP server to your config:
- Update the path: Replace
/path/to/clicky-mcp/
with the actual path to your cloned repository. - Add your credentials: Replace
YOUR_SITE_ID
andYOUR_SITE_KEY
with your actual Clicky credentials. - Restart Claude Desktop for the changes to take effect.
Once configured, you'll be able to use tools like "get traffic sources for my website" or "show me top pages from last week" directly in Claude Desktop conversations.
Available Tools
get_total_visitors
Get total visitor counts for a specified date range.
Parameters:
start_date
(string, required): Start date in YYYY-MM-DD formatend_date
(string, required): End date in YYYY-MM-DD format
Example:
get_domain_visitors
Get visitor data filtered by referrer domain with optional segmentation data.
Parameters:
domain
(string, required): Domain name to filter by (e.g., "facebook.com", "google.com")start_date
(string, required): Start date in YYYY-MM-DD formatend_date
(string, required): End date in YYYY-MM-DD formatsegments
(array, optional): Array of segments to include. Options: "pages", "visitors". Defaults to "visitors" only.- "visitors": Gets the total number of visitors from the domain
- "pages": Gets the list of pages and their visit counts from the domain
limit
(number, optional): Maximum number of results to return (1-1000)
Basic Example (visitor count only):
Advanced Example (with segmentation):
get_top_pages
Get the most popular pages for a date range.
Parameters:
start_date
(string, required): Start date in YYYY-MM-DD formatend_date
(string, required): End date in YYYY-MM-DD formatlimit
(number, optional): Maximum number of pages to return (1-1000)
Example:
get_traffic_sources
Get traffic sources breakdown showing where visitors come from. Optionally filter by specific page URL.
Parameters:
start_date
(string, required): Start date in YYYY-MM-DD formatend_date
(string, required): End date in YYYY-MM-DD formatpage_url
(string, optional): Full URL or path of the page to get traffic sources for (e.g., "https://example.com/path" or "/path")
Example:
Example with page filter:
Returns: Clean breakdown of traffic sources with visitor counts and percentages for sources like Direct, Search engines, Social media, Links, etc.
get_page_traffic
Get traffic data for a specific page by filtering with its URL.
Parameters:
url
(string, required): Full URL or path of the page (e.g., "https://example.com/page" or "/page")start_date
(string, required): Start date in YYYY-MM-DD formatend_date
(string, required): End date in YYYY-MM-DD format
Example:
Returns: Traffic data for the specific page including visitor counts, actions, and other page-specific metrics.
API Limitations
- Maximum date range: 31 days (enforced by Clicky API)
- Maximum results per request: 1,000 items
- One simultaneous request per IP address per site ID
Error Handling
The server includes built-in error handling for:
- Invalid date ranges (> 31 days)
- API rate limits
- Network errors
- Invalid parameters
All errors are returned with descriptive messages to help with debugging.
Development
The project structure:
License
MIT
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Enables users to retrieve website traffic analytics data from Clicky, including visitor counts, top pages, traffic sources, and domain-specific visitor data. Provides comprehensive web analytics insights through natural language queries with support for date range filtering and detailed traffic breakdowns.
Related MCP Servers
- -securityAlicense-qualityEnhances Claude's capabilities by providing access to website analytics data from Umami, enabling analysis of user behavior, website performance tracking, and data-driven insights generation.Last updated -6MIT License
- -securityFlicense-qualityAllows AI models to query and retrieve analytics data from Plausible Analytics through the Plausible API, enabling natural language interactions with website statistics.Last updated -1
- -securityFlicense-qualityConnects Google Analytics 4 data to Claude, Cursor and other MCP clients, enabling natural language queries of website traffic, user behavior, and analytics data with access to 200+ GA4 dimensions and metrics.Last updated -136
- AsecurityFlicenseAqualityGet access to real-time SEO data, including: keyword insights, backlink data, traffic estimates and more. Allow AI tools and Large Language Models (LLMs) to tap into the real-time SEO Review Tools API with natural language commands.Last updated -802