Skip to main content
Glama
mikusnuz

umami-mcp

list_websites

Retrieve and filter tracked websites from Umami Analytics. Use pagination, search queries, and sorting to manage your website list.

Instructions

List all websites tracked in Umami

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageNoPage number (1-based)
pageSizeNoResults per page (default 10)
queryNoSearch query to filter websites
orderByNoField to order by (e.g. 'name', 'domain')

Implementation Reference

  • The async handler function for the list_websites tool.
    async ({ page, pageSize, query, orderBy }) => {
      const data = await client.call("GET", "/api/websites", undefined, {
        page: page,
        pageSize: pageSize,
        query,
        orderBy,
      });
      return { content: [{ type: "text", text: JSON.stringify(data, null, 2) }] };
    }
  • The zod schema defining input arguments for list_websites.
    {
      page: z.number().optional().describe("Page number (1-based)"),
      pageSize: z.number().optional().describe("Results per page (default 10)"),
      query: z.string().optional().describe("Search query to filter websites"),
      orderBy: z.string().optional().describe("Field to order by (e.g. 'name', 'domain')"),
    },
  • The registration call for the list_websites tool using the McpServer instance.
    server.tool(
      "list_websites",
      "List all websites tracked in Umami",
      {
        page: z.number().optional().describe("Page number (1-based)"),
        pageSize: z.number().optional().describe("Results per page (default 10)"),
        query: z.string().optional().describe("Search query to filter websites"),
        orderBy: z.string().optional().describe("Field to order by (e.g. 'name', 'domain')"),
      },
      async ({ page, pageSize, query, orderBy }) => {
        const data = await client.call("GET", "/api/websites", undefined, {
          page: page,
          pageSize: pageSize,
          query,
          orderBy,
        });
        return { content: [{ type: "text", text: JSON.stringify(data, null, 2) }] };
      }
    );

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/mikusnuz/umami-mcp'

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