Supports configuration through .env files for storing Matomo instance URLs and authentication tokens.
Allows obtaining the server code through git clone commands from a repository.
Provides comprehensive tools for interacting with Matomo Analytics API, enabling management of sites, users, goals, and segments, as well as fetching analytics reports like visit summaries, top pages, keywords, referrers, and visitor logs.
Supports installation, building, and running of the server using npm commands for package management.
Matomo MCP Server
MCP (Model Context Protocol) server để quản trị Matomo Analytics. Server này cung cấp các công cụ để tương tác với Matomo API thông qua giao diện MCP.
Tính năng
Quản lý Sites
- Lấy danh sách tất cả sites
- Lấy thông tin chi tiết của một site
- Thêm site mới
- Cập nhật thông tin site
- Xóa site
Quản lý Users
- Lấy danh sách tất cả users
- Lấy thông tin chi tiết của một user
- Thêm user mới
- Cập nhật thông tin user
- Xóa user
- Thiết lập quyền truy cập cho user
Quản lý Goals
- Lấy danh sách goals của site
- Thêm goal mới
- Cập nhật goal
- Xóa goal
Quản lý Segments
- Lấy danh sách segments
- Thêm segment mới
- Cập nhật segment
- Xóa segment
Báo cáo Analytics
- Tổng quan lượt truy cập
- Top pages được truy cập nhiều nhất
- Top keywords
- Top referrers
- Visitor log
Quản lý Hệ thống
- Thông tin hệ thống
- Quản lý plugins
- Kích hoạt/vô hiệu hóa plugins
Cài đặt
- Clone repository:
- Cài đặt dependencies:
- Build project:
Cấu hình
Tạo file .env
trong thư mục gốc:
Sử dụng
Chạy server:
Chạy trong chế độ development:
Các Tools có sẵn
1. matomo_connect
Kết nối đến Matomo instance.
Tham số:
baseUrl
: URL của Matomo instancetokenAuth
: Token xác thực API
2. matomo_get_sites
Lấy danh sách tất cả sites.
3. matomo_get_site
Lấy thông tin chi tiết của một site.
Tham số:
siteId
: ID của site
4. matomo_add_site
Thêm site mới.
Tham số:
name
: Tên siteurls
: Danh sách URLstimezone
: Múi giờ (tùy chọn, mặc định: UTC)
5. matomo_get_users
Lấy danh sách tất cả users.
6. matomo_add_user
Thêm user mới.
Tham số:
userLogin
: Tên đăng nhậpemail
: Emailpassword
: Mật khẩualias
: Bí danh (tùy chọn)
7. matomo_get_goals
Lấy danh sách goals của site.
Tham số:
siteId
: ID của site
8. matomo_add_goal
Thêm goal mới.
Tham số:
siteId
: ID của sitename
: Tên goaldescription
: Mô tảmatchAttribute
: Thuộc tính khớppattern
: Mẫu khớppatternType
: Loại mẫu
9. matomo_get_visits_summary
Lấy tổng quan lượt truy cập.
Tham số:
siteId
: ID của sitedate
: Ngày (YYYY-MM-DD)period
: Chu kỳ (day, week, month, year)
10. matomo_get_top_pages
Lấy top pages.
Tham số:
siteId
: ID của sitedate
: Ngày (YYYY-MM-DD)period
: Chu kỳ (tùy chọn)limit
: Số lượng kết quả (tùy chọn)
11. matomo_get_system_info
Lấy thông tin hệ thống.
Ví dụ sử dụng
Kết nối đến Matomo:
Lấy danh sách sites:
Thêm site mới:
Lưu ý
- Đảm bảo bạn có quyền truy cập API với token xác thực hợp lệ
- Một số chức năng có thể yêu cầu quyền admin
- Luôn kiểm tra kết nối trước khi sử dụng các tools khác
Đóng góp
Mọi đóng góp đều được chào đón! Vui lòng tạo issue hoặc pull request.
License
MIT License
Tools
A Model Context Protocol server that provides tools to interact with Matomo Analytics API, enabling management of sites, users, goals, segments, and access to analytics reports through a MCP interface.
Related MCP Servers
- -securityAlicense-qualityA Model Context Protocol server that provides seamless interaction with Workato's API through custom AI tools, enabling management of recipes, connections, connectors, folders, and activity logs.Last updated -TypeScriptMIT License
- AsecurityAlicenseAqualityA Model Context Protocol server that connects to Mattermost, allowing AI models to monitor and process messages from specific teams and channels in real-time via SSE or Standard I/O transport modes.Last updated -12JavaScriptMIT License
- -securityAlicense-qualityA server that implements the Model Context Protocol, providing a standardized way to connect AI models to different data sources and tools.Last updated -35TypeScriptMIT License
- AsecurityFlicenseAqualityA Model Context Protocol server for interacting with the Marketo API that provides tools for managing Marketo forms, including listing, cloning, and approving forms.Last updated -42TypeScript