agentlyticsby measuremy.site

What is an MCP server? A plain-English guide for people who run websites

If you use Claude Code, Cursor or Codex you have probably seen the words "MCP server". Here is what that means without the jargon, and what to check before you connect one.

The short version

MCP stands for Model Context Protocol, an open standard that Anthropic introduced in late 2024 for connecting AI applications to outside tools and data. An MCP server is a program that offers a set of named tools. An AI app (the client) connects to it, reads the list of tools, and calls them when they help answer your request.

Before MCP, every connection between an AI app and a service was custom work. With MCP, a service publishes one server and any compatible client can use it.

The parts

Local and remote servers

A local server runs on your computer and talks to the client over standard input and output. A remote server is hosted online and the client connects over HTTP, usually with a secret token. Services that already hold your data, such as an analytics product, offer a remote one: you give your client a URL and a key.

What happens when you ask a question

  1. You ask: "Why did traffic jump on Tuesday?"
  2. The agent looks at the tools the server offers and picks the one that fits, for example a spike-finding tool.
  3. The client calls it, the server returns data as text or JSON, and the agent explains it in plain words and suggests a next step.

You never click through a dashboard. The agent does the querying.

What to check before you connect one

A real example: analytics

The agentlytics MCP server gives your agent tools for traffic, spikes and their causes, visits by country or browser or source, funnels, tracked campaign links and results. Each read key belongs to one site, and the agent can't change your account or billing. Connecting it in Claude Code is one command:

claude mcp add --scope user --transport http agentlytics https://a.measuremy.site/mcp --header "Authorization: Bearer YOUR_READ_KEY"

Or let your agent do the whole setup, including the account, from one sentence:

Paste this into Claude Code, Cursor or Codex
Add agentlytics analytics to this project. Follow the instructions at measuremy.site/llms.txt

Building your own

There are official software development kits for TypeScript and Python that handle the protocol details, so a small server that wraps one API is an afternoon of work. For a deeper look at connecting analytics, see the analytics MCP server guide and the agent docs.

See it on your own site

agentlytics is cookieless analytics your coding agent can read. Free for 5,000 pageviews a month, no card.

Start free See the live demo

Add agentlytics analytics to this project. Follow the instructions at measuremy.site/llms.txt

More from the blog