Token导航 LogoToken导航

MCP Server · AI代理

Query Counter MCP

一个记录LLM查询并提供交互式分析的服务,支持多种日志格式和可视化仪表盘。

未说明官方级别未说明来源级核验工具 2
JavaScriptClaude日志管理Claude Desktop

快速开始

公开资料没有提供安装命令,按仓库或官方文档接入。
作者 / 组织
bjulius
提供方
bjulius

工具数量

2

来源目录标注

资源数量

0

来源目录标注

提示词数量

0

来源目录标注

GitHub Star

3

仓库热度

收录来源

2 个

MCP World

选型结论

Query Counter MCP 属于AI代理类 MCP Server,公开资料标注 2 个工具,通过传输方式未标注接入,适配 Claude Desktop、Claude,没有现成的安装命令;接入前先确认权限范围。

分类

AI代理

传输方式

未说明

认证方式

无需认证

部署方式

仅本地运行

安装与配置

公开目录没有给出安装命令,需要按仓库 README安装;下面按同类条目的通用流程说明。

公开命令不是通用的启动方式,拼不出可靠配置示例;请在客户端 MCP 配置里按官方文档填写 command 和 args。

上手步骤

  1. 1

    先确认运行方式

    公开资料没有标注传输方式,先看仓库 README,确认是本地进程还是远程地址。

  2. 2

    获取服务

    公开目录没有给出安装命令,按仓库 README里的步骤安装或获取服务。

  3. 3

    写入客户端配置

    在客户端的 MCP 配置里填启动命令和参数,保存后完全退出客户端再打开,让新配置生效。

  4. 4

    验证是否可用

    连接成功后客户端会列出 2 个工具,随便调一个只读工具确认能返回结果。

接入前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

公开资料仍需确认:安装命令

详细介绍

Query Counter MCP Server

An MCP (Model Context Protocol) server that logs all your LLM queries to a local file and provides interactive analytics. Track your interactions with Claude, ChatGPT, Gemini, and other models with detailed categorization and visualizations.

Features

  • Dual Format Logging: CSV (default) or Markdown format
  • Interactive Dashboard: Beautiful HTML analytics dashboard with charts and KPIs
  • Category Tracking: Organize queries by type (coding, research, debugging, etc.)
  • Rich Analytics: Track query volume, model usage, category distribution, and trends
  • Configurable: Custom log file location and format
  • MCP Compatible: Works with Claude Desktop and other MCP clients

Installation

  1. Clone the repository:
git clone https://github.com/bjulius/QueryCounterMCP.git
cd QueryCounterMCP
  1. Install dependencies:
npm install
  1. Build the project:
npm run build

Configuration

Claude Desktop

Add to your Claude Desktop configuration file:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "query-counter": {
      "command": "node",
      "args": [
        "/path/to/your/QueryCounterMCP/build/index.js"
      ]
    }
  }
}

Replace /path/to/your/QueryCounterMCP/ with the actual path where you cloned the repository.

Example paths:

  • macOS: "/Users/yourname/projects/QueryCounterMCP/build/index.js"
  • Windows: "C:\\Users\\YourName\\Projects\\QueryCounterMCP\\build\\index.js"

Environment Variables

Customize the logging behavior:

{
  "mcpServers": {
    "query-counter": {
      "command": "node",
      "args": [
        "/path/to/your/QueryCounterMCP/build/index.js"
      ],
      "env": {
        "QUERY_LOG_FORMAT": "csv",
        "QUERY_LOG_PATH": "/path/to/your/custom/log.csv"
      }
    }
  }
}

Available Options:

  • QUERY_LOG_FORMAT: "csv" (default) or "md" for Markdown
  • QUERY_LOG_PATH: Custom path for the log file

Usage

Logging Queries

The MCP server automatically logs queries made through Claude Desktop. The AI (Claude) determines the appropriate category based on the conversation context.

Example interaction:

User: Help me debug a React component that's not rendering properly
Claude: [Uses the log_query tool automatically]
        - model: "Claude Sonnet 4.5"
        - query_summary: "Help me debug a React component"
        - category: "debugging" [AI selected]

Tool Parameters:

  • model (required): The LLM model name (selected by AI)
  • query_summary (required): Brief description of the query (generated by AI)
  • category (optional): Query category (automatically selected by AI based on query type)

Viewing the Dashboard

Use the show_dashboard tool to generate and view analytics:

Please show me the dashboard

This will:

  1. Generate an interactive HTML dashboard from your query data
  2. Automatically open it in your default browser
  3. Display real-time analytics and visualizations

Dashboard Features

The interactive dashboard includes:

KPI Cards

  • Total Queries Today: Number of queries logged today (highlighted)
  • Average Queries Per Day: Mean queries across all days
  • Total Number of Categories: Unique categories used
  • Max Queries in a Day: Your highest query volume day

Visualizations

  • Categories by Percent: Horizontal bar chart showing category distribution
  • Models by Percent: Horizontal bar chart of AI model usage
  • Total Queries by Day: Daily query volume over time

Design

  • Clean, modern interface with responsive layout
  • Interactive charts powered by Chart.js
  • Data labels on all visualizations for easy reading
  • Personalized with your name in the subtitle

Query Categories

The AI automatically selects the most appropriate category for each query. These categories help organize and analyze your query patterns:

Development & Code

  • coding - Writing, debugging, or explaining code
  • refactoring - Code improvements, restructuring, optimization
  • testing - Writing or running tests, test analysis
  • debugging - Troubleshooting errors, investigating issues

Analysis & Research

  • data-analysis - Analyzing data, visualizations, statistics
  • research - Information lookup, documentation searches, learning

Project Management

  • documentation - Writing/updating docs, README files, comments
  • configuration - Settings, setup, tool configuration, environment

Interaction

  • clarification - Follow-up questions, asking for details
  • selection - Short confirmations, choosing options
  • navigation - UI commands, viewing files, moving around
  • conversation - General chat, greetings, feedback

Log File Format

By default, queries are logged to QueryTrackMCP.csv in CSV format:

timestamp,date,model,category,query_summary
2025-10-15T18:20:37.516Z,10/15/2025 2:20:37 PM,Claude Sonnet 4.5,debugging,Help me debug a React component
2025-10-15T18:22:15.342Z,10/15/2025 2:22:15 PM,Claude Sonnet 4.5,coding,Create a user authentication function
2025-10-15T18:25:43.891Z,10/15/2025 2:25:43 PM,Claude Sonnet 4.5,data-analysis,Analyze sales data trends

CSV Format Benefits:

  • ✅ Easy to import into Excel, Google Sheets, or Pandas
  • ✅ Efficient for data analysis and reporting
  • ✅ Compact file size
  • ✅ Perfect for generating the interactive dashboard
  • ✅ Can be opened and edited in any spreadsheet application

Alternative: Markdown Format

To use Markdown format instead, set QUERY_LOG_FORMAT=md in your environment variables. This creates a QueryTrackMCP.md file:

# LLM Query Log

This file tracks all queries made to various LLM models.

---

## 10/15/2025, 2:20:37 PM

- **Model**: Claude Sonnet 4.5
- **Category**: debugging
- **Query**: Help me debug a React component
- **Timestamp**: 2025-10-15T18:20:37.516Z

---

Markdown Format Benefits:

  • ✅ Human-readable format
  • ✅ Easy to browse in text editors
  • ✅ Great for documentation and version control

Available Tools

log_query

Logs an LLM query to the tracking file.

Parameters:

  • model (string, required): LLM model name
  • query_summary (string, required): Brief query description
  • category (string, optional): Query category

show_dashboard

Generates and displays an interactive HTML analytics dashboard.

Parameters: None

Output: Opens query-dashboard.html in your default browser with:

  • 4 KPI cards with key metrics
  • 3 interactive charts (categories, models, daily trends)
  • Real-time data from your CSV log file

Development

# Install dependencies
npm install

# Build the project
npm run build

# Watch for changes during development
npm run watch

# Build and run
npm run dev

File Structure

QueryCounterMCP/
├── src/
│   └── index.ts          # Main MCP server code
├── build/
│   └── index.js          # Compiled JavaScript
├── QueryTrackMCP.csv     # Query log (CSV format)
├── query-dashboard.html  # Generated analytics dashboard
├── CLAUDE.md            # Instructions for Claude Code
└── README.md            # This file

Tips

  1. Use categories consistently for better analytics
  2. Run the dashboard regularly to track your query patterns
  3. Set up automatic logging by integrating with your workflow
  4. Export CSV data for custom analysis in Excel or Python
  5. Customize the format based on your needs (CSV for analysis, MD for documentation)

License

MIT

工具与能力

工具数量

2

资源数量

0

提示词数量

0

能力标签

LLM查询跟踪JavaScript本地部署数据分析日志管理交互式仪表盘MCP协议

支持客户端

Claude DesktopClaude

数量来自来源目录的标注,具体工具清单以官方文档为准。

典型使用场景

多步任务编排

把拆解、检索、执行串成一条链,模型按步骤调用工具。

长期上下文

把会话、笔记和知识放到外部存储,换个会话还能接着做。

接自有流程

把内部系统和模型连起来,让助手调用已有的工作流。

选择建议

值得选的地方

  • 只提供 2 个工具,职责集中,接入后不容易误操作。
  • 已经适配 Claude Desktop、Claude,换客户端不用重新研究配置。
  • 公开说明写得比较完整,接入前能看清能力边界。

先想清楚的地方

  • 公开资料没有可直接复制的安装命令,第一次接入要自己找入口。
  • 公开摘要偏短,具体能力和限制要回到仓库确认。
  • 第三方目录整理,版本更新和行为细节以官方仓库为准。

更适合

  • 需要在AI代理场景里让模型直接调用外部能力的人。
  • 已经在用 Claude Desktop 的用户,接入路径最短。
  • 愿意照着官方文档一步步配环境的人。

不太适合

  • 希望一条命令就装好、不想看文档的人。
  • 需要厂商级 SLA 和技术支持的生产环境。

同类对比

5 个同类
MCP Server工具数传输方式安装命令收录来源最后核验
Query Counter MCP

MCP World · 本页

2未说明未标注2 个2026-05-17
Everything Claude Code

MCP World

0stdio有1 个2026-05-17
Filesystem 560c4363

MCP World

13未说明未标注2 个2026-05-17
Time 7365cb6d

MCP.so

2SSE有2 个2026-05-17
Server Everything (everything)

MCP World

11stdio有1 个2026-05-17

按同分类和工具数量挑出最接近的几条,字段以各自详情页为准。

常见问题

5 条

Query Counter MCP 怎么安装?

公开目录没有给出可以直接复制的安装命令,需要按仓库 README里的步骤安装;装好后写进客户端的 MCP 配置再重启。

Query Counter MCP 怎么在 Claude Desktop、Cursor 里配置?

它是传输方式未标注,客户端配置里要写启动命令和参数,运行环境是 未标注;保存后完全退出客户端再打开,配置才会生效。

Query Counter MCP 收费吗?

本站只整理公开资料,不代收费用,也没有标注具体价格。是否收费取决于服务本身和背后的接口额度,正式使用前按官方说明确认。

Query Counter MCP 需要 API Key 吗?

公开资料标注为无需认证,装好就能连;如果实际调用时报鉴权错误,按官方文档补上凭据。

Query Counter MCP 支持哪些客户端?

公开资料标注支持 Claude Desktop、Claude;其他客户端只要能配置 MCP Server,也能用同样的命令或地址接入。

来源信息

继续浏览同类 MCP