Skip to main content
Glama
thichcode

Matomo MCP Server

by thichcode

matomo_get_system_info

Retrieve Matomo Analytics system information including version, configuration, and server details to monitor platform status and verify API connectivity.

Instructions

Lấy thông tin hệ thống Matomo

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Tool schema definition: name 'matomo_get_system_info', description, and empty input schema (no parameters required).
    { name: 'matomo_get_system_info', description: 'Lấy thông tin hệ thống Matomo', inputSchema: { type: 'object', properties: {}, }, },
  • src/index.ts:290-291 (registration)
    Switch case in CallToolRequestHandler that registers and routes 'matomo_get_system_info' calls to the handler method.
    case 'matomo_get_system_info': return await this.handleGetSystemInfo();
  • Handler function for the tool: checks Matomo connection, invokes service.getSystemInfo(), and returns JSON-formatted system info as text content.
    private async handleGetSystemInfo() { if (!this.matomoService) { throw new Error('Chưa kết nối đến Matomo. Vui lòng sử dụng matomo_connect trước.'); } const info = await this.matomoService.getSystemInfo(); return { content: [ { type: 'text', text: `Thông tin hệ thống:\n${JSON.stringify(info, null, 2)}`, }, ], }; }
  • Core handler logic in MatomoApiService: performs API request to Matomo's 'API.getSystemInfo' endpoint and returns the system information.
    async getSystemInfo(): Promise<MatomoSystemInfo> { const response = await this.makeRequest('API.getSystemInfo'); return response; }

Latest Blog Posts

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/thichcode/matomo_mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server