Skip to main content
Glama
mikusnuz

umami-mcp

create_website

Add a new website to Umami Analytics for tracking visitor data, statistics, and events by providing domain and display name.

Instructions

Create a new website to track in Umami

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
domainYesWebsite domain (e.g. 'example.com')
nameYesDisplay name for the website
shareIdNoUnique share ID for public access

Implementation Reference

  • The "create_website" tool is defined and registered here. It accepts domain, name, and optional shareId as inputs, and performs a POST request to the Umami API to create a new website.
    server.tool(
      "create_website",
      "Create a new website to track in Umami",
      {
        domain: z.string().describe("Website domain (e.g. 'example.com')"),
        name: z.string().describe("Display name for the website"),
        shareId: z.string().optional().describe("Unique share ID for public access"),
      },
      async ({ domain, name, shareId }) => {
        const body: Record<string, unknown> = { domain, name };
        if (shareId) body.shareId = shareId;
        const data = await client.call("POST", "/api/websites", body);
        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