npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@martin4455/matomo-mcp-ro

v0.4.2

Published

Read-only Matomo Reporting API MCP with HTTP Basic Auth and project-local configuration

Readme

Matomo MCP Server (Read-Only)

A local MCP server for Claude Code, Claude Desktop and Codex. Use it to read Matomo analytics, compare traffic and conversions, and investigate visits and User ID reports.

The server only reads from Matomo: it cannot change sites, goals, segments or users.

1. Install

You need Node.js 24+ and a Matomo account with an API token and access to at least one site.

node -v
npm install -g @martin4455/matomo-mcp-ro@latest

These setup instructions require version 0.4.2+. For an unreleased checkout, use the source setup.

2. Configure

Run the configurator in your project directory:

cd "/absolute/path/to/project"
matomo-mcp configure

Enter your HTTPS Matomo URL (for example, https://matomo.example.com) and API token. Create a token under Administration → Personal → Security → Create new token; see the Matomo token guide. If your server also requires HTTP Basic Auth, enter its login and password. The configurator tests the connection before saving.

The URL, token and optional Basic Auth credentials are encrypted together and stored in macOS Keychain, Windows Credential Manager or Linux Secret Service (such as GNOME Keyring). The project's .matomo-mcp.json stores a UUID reference, not credentials. There is no additional passphrase when starting a session. Access protection comes from the OS credential store; see the encryption details and limits.

Existing entries in the old format are treated as invalid credentials. Run matomo-mcp configure again and enter the complete connection.

3. Connect your client

From the same project directory, run the command for your client.

Claude Code:

claude mcp add matomo-local -- npx -y @martin4455/matomo-mcp-ro@latest --config .

Start Claude Code from this directory so . selects your local configuration. For Windows launch problems, see launcher troubleshooting.

Codex CLI:

Replace the quoted path with the directory you configured above.

codex mcp add matomo-local -- npx -y \
  @martin4455/matomo-mcp-ro@latest --config "/absolute/path/to/project"

Claude Desktop: follow the Desktop setup.

Start or restart your client. In Claude Code or Codex CLI, use /mcp to check the server's status. The first launch may take a moment to download the package.

4. Try it

Ask your assistant:

Use matomo-local to check which Matomo sites I can access.

Then give it an analytics question:

Compare visits, traffic sources and goal conversions for site 1 in September 2026 with August 2026. Explain the largest changes and flag incomplete data.

You can also ask about a particular User ID, visit details or custom dimensions. Use the server name you registered; the generated Desktop settings use matomo.

For token changes, platform requirements, storage details, report tools and troubleshooting, see the configuration guide.

MIT license. Source | Report an issue.