# Baidu Analytics MCP for AI Agents MCP

> Baidu Analytics / 百度统计 connects your AI agent directly to China's leading web analytics platform. It lets you audit complex traffic data, track real-time visitor movements, and query detailed site metrics using natural language commands. Stop jumping between dashboards; get accurate performance reports instantly.

## Overview
- **Category:** industry-titans
- **Price:** Free
- **Tags:** web-analytics, traffic-monitoring, visitor-insights, performance-tracking, conversion-metrics

## Description

Forget navigating the deep menus of a standard dashboard just to pull three numbers for a meeting. This MCP hooks your AI agent into Baidu Analytics (百度统计), giving you instant access to China's primary source for website traffic insights. Instead of manually generating a report, you simply ask your client to audit visitor trends or check performance for a specific landing page. Your agent acts as an expert data coordinator, gathering immediate metrics like Page Views and Unique Visitors, even pulling detailed information on where visitors are coming from. By connecting this tool via Vinkius, you get one authorized source of truth for all your site metrics, right inside the conversation window. You can query everything from daily visitor trends to specific geographic hot spots without ever leaving your AI workflow.

## Tools

### get_daily_trend
Retrieves a summary of how overall site traffic has changed day over day.

### get_geo_distribution
Calculates and returns the geographic breakdown of your website's visitors.

### get_page_rankings
Lists the most popular pages on your site along with their current ranking metrics.

### get_realtime_metrics
Provides an immediate count of online users, total Page Views (PV), and Unique Visitors (UV).

### get_source_data
Details the origin of traffic, specifying if visitors came from search engines, direct inputs, or other sources.

### get_yesterday_overview
Pulls a comprehensive summary report covering all major site metrics for the previous calendar day.

### list_sites
Returns a list of all registered websites linked to your Baidu Analytics account.

### query_custom_metrics
Allows you to run advanced, custom reports by specifying exact metrics and filters.

## Prompt Examples

**Prompt:** 
```
What were our total unique visitors for the last 7 days?
```

**Response:** 
```
**Weekly Traffic Summary**

*   **Total Unique Visitors (UV):** 18,500
*   **Average Daily UV:** 2,643
*   **Peak Day:** Last Tuesday (3,200 UV)

Overall traffic is up 9% compared to the previous week. The largest increase came from 'Search Engine' sources.
```

**Prompt:** 
```
Show me which pages are getting the most traffic right now.
```

**Response:** 
```
**Top 5 Pages by Visits (Last 24 Hours)**

| Rank | Page URL | Total PV |
| :---: | :--- | :---: |
| 1 | /product/widget-x | 680 |
| 2 | /blog/guide-to-seo | 310 |
| 3 | /contact | 95 |

The widget page is performing well, but the blog guide could use more promotional lift.
```

**Prompt:** 
```
What are our live visitor stats right now?
```

**Response:** 
```
**Live Site Dashboard**

✅ **Currently Online:** 42 users
📈 **Total Page Views (PV) Today:** 1,530
👤 **Unique Visitors (UV) Today:** 987

We've seen a steady increase in unique visitors over the last hour. Do you want me to check their current source data?
```

## Capabilities

### List registered sites
Retrieves a list of every website audited in your Baidu Analytics account, allowing you to select the correct source for reporting.

### Get real-time visitor statistics
Pulls live metrics, showing current online users and accumulated Page Views (PV) and Unique Visitors (UV) for today.

### Analyze daily traffic trends
Audits historical performance data over specific date ranges to show how your site's overall traffic is changing day by day.

### Determine visitor location data
Gathers geographic distribution metrics, showing where your site's visitors are coming from across the globe.

### Identify top visited pages and rankings
Queries which specific pages on your site receive the most traffic and what their current ranking performance is.

### Source visitor data
Breaks down where visitors originated, whether from search engines, direct links, or social media.

### Run custom reports
Executes highly specific queries using flexible metrics to generate performance reports tailored exactly to your needs.

## Use Cases

### Investigating a sudden drop in sign-ups
A marketing manager asks the agent to check yesterday's performance. The agent uses `get_source_data` and finds that traffic from 'Paid Search' dropped by 40%, allowing the team to immediately pause underperforming campaigns.

### Preparing for a quarterly review meeting
A product manager asks the agent for all site metrics. The agent uses `list_sites` first, then executes `get_yesterday_overview`, compiling key UV/PV data points into a clean summary ready to paste into slides.

### Optimizing a new landing page
The team wants to know if the new page is working. The agent runs `get_page_rankings` and `get_geo_distribution`, confirming that traffic spikes are coming from key target regions, proving the page's effectiveness.

### Benchmarking site performance against goals
An analyst needs to compare last month's average daily UV versus this month's. They ask for a trend analysis, and the agent uses `get_daily_trend` to provide immediate historical context.

## Benefits

- Get immediate visibility into live site activity. Instead of guessing, your agent uses `get_realtime_metrics` to tell you exactly how many users are online right now.
- Stop wasting time manually comparing dates. The `get_daily_trend` tool analyzes performance over custom date ranges so you always know if traffic is moving up or down.
- Understand where your audience comes from. Using `get_source_data`, you can pinpoint if a drop in visitors was due to search engine issues or social media changes.
- Pinpoint high-value content instantly. The `get_page_rankings` tool tells you exactly which pages need promotion or updating based on actual user traffic.
- Eliminate dashboard hopping. With access to `list_sites` and custom queries, your agent handles all site selection and data gathering in one conversational step.

## How It Works

The bottom line is that you get natural language access to complex web analytics reports without writing any code or navigating dashboards.

1. Subscribe to this MCP and provide your Baidu Analytics Username, Password, Token, and Site ID.
2. Connect the service through your preferred AI client (like Claude or Cursor).
3. Ask your agent a question about site performance, like 'What were our total UV last week?' The agent runs the necessary tool calls and delivers the answer.

## Frequently Asked Questions

**How does Baidu Analytics / 百度统计 help me track live visitor stats?**
Your agent gets real-time numbers instantly. Instead of manually checking a dashboard, you ask for the current count of online users and total page views, getting an immediate snapshot of your site's activity.

**Can I use Baidu Analytics / 百度统计 to find out where my visitors are coming from?**
Yes. You can query the visitor source data to see if traffic is dropping because of a search engine change or if direct link usage went down. It breaks down every channel for you.

**What if I need to compare performance across multiple websites?**
First, you use the tool to list all registered sites in your account. Then, you can ask the agent to run a specific audit—like daily trends—on several of those listed sites in one request.

**Is Baidu Analytics / 百度统计 better than looking at Google Analytics?**
This MCP gives you access to Baidu's data, which is the dominant platform for web metrics within China. It provides specialized insights crucial for optimizing content and campaigns targeted at that specific user base.

**How do I know if my new landing page is actually working?**
You can run a performance audit using the tool to check the page's rankings and compare its traffic against other pages. This helps you see if it’s attracting the right kind of visitor.