# HTML link rel count, markup discarded

> HTML link rel count, markup discarded is an MCP server for developer tools. Counts HTML link rel attributes for AI clients, returning counts without the markup. It runs as a hosted remote server, so there is nothing to install locally.

- **Kind:** MCP server
- **Platforms:** API
- **Repository:** https://github.com/sadri-dridi/named-mcp-utilities
- **MCP Registry name:** io.github.sadri-dridi/link-rel-count
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-18

## About

This server takes HTML and reports how many link elements carry each rel value, so a client gets the tally rather than the page source. It is reached over streamable HTTP at a hosted endpoint, and the registry lists no separate package to install.

It sits in a small set of single-purpose MCP utilities published under one author's namespace, each covering one narrow parsing or counting job. The source material does not list individual tool names or input limits, so details beyond the counting behaviour are not described here.

It suits developers and agent builders who want a quick structural check of a page's link relations, such as how many stylesheets, icons or canonical links it declares, without passing the full document into a model's context.

## Features

- **Link rel counting:** Tallies the rel values found on link elements in the HTML it receives.
- **Markup discarded:** Returns the counts only, so the original HTML is not echoed back to the client.
- **Remote streamable HTTP access:** Connects to AI clients through a hosted streamable HTTP MCP endpoint.

## Good for

- Checking which stylesheet, icon or canonical links a page declares before scraping it
- Keeping HTML out of an agent's context while still getting a structural summary
- Validating link relation usage in pages a workflow generates

## Install

### Claude Code (Terminal)

```sh
claude mcp add --transport http link-rel-count https://agent-observatory-sensor.nolimit-observatory.workers.dev/s/link-rel-count/mcp
```

### Claude Desktop (Settings → Connectors → Add custom connector)

```sh
https://agent-observatory-sensor.nolimit-observatory.workers.dev/s/link-rel-count/mcp
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "link-rel-count": {
      "url": "https://agent-observatory-sensor.nolimit-observatory.workers.dev/s/link-rel-count/mcp"
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "link-rel-count": {
      "type": "http",
      "url": "https://agent-observatory-sensor.nolimit-observatory.workers.dev/s/link-rel-count/mcp"
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "link-rel-count": {
      "serverUrl": "https://agent-observatory-sensor.nolimit-observatory.workers.dev/s/link-rel-count/mcp"
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "link-rel-count": {
      "type": "http",
      "url": "https://agent-observatory-sensor.nolimit-observatory.workers.dev/s/link-rel-count/mcp"
    }
  }
}
```

## FAQ

### How is the server connected to a client?

The registry entry lists a streamable HTTP remote URL and no packages, so it is used as a hosted endpoint rather than installed locally.

### How do I add HTML link rel count, markup discarded to Claude Code?

Run this command in your terminal: claude mcp add --transport http link-rel-count https://agent-observatory-sensor.nolimit-observatory.workers.dev/s/link-rel-count/mcp

### What are the best alternatives to HTML link rel count, markup discarded?

The closest alternatives to HTML link rel count, markup discarded are HTML meta tag count, markup discarded, HTML script tag count, markup discarded, URL-ish token count, text discarded, Open Graph meta count, markup discarded and Markdown heading count, text discarded.

## Where this comes from

- Description: written from the project's README and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [HTML meta tag count, markup discarded](https://ai-powered.com/mcp/html-meta-tag-count-markup-discarded-2): HTML meta tag count, markup discarded is an MCP server for developer tools.
- [HTML script tag count, markup discarded](https://ai-powered.com/mcp/html-script-tag-count-markup-discarded-2): HTML script tag count, markup discarded is an MCP server for developer tools.
- [URL-ish token count, text discarded](https://ai-powered.com/mcp/url-ish-token-count-text-discarded): URL-ish token count, text discarded is an MCP server for developer tools.
- [Open Graph meta count, markup discarded](https://ai-powered.com/mcp/open-graph-meta-count-markup-discarded): Open Graph meta count, markup discarded is an open-source MCP server for developer tools.
- [Markdown heading count, text discarded](https://ai-powered.com/mcp/markdown-heading-count-text-discarded): Markdown heading count, text discarded is an MCP server for files and documents.
- [Line count, text discarded](https://ai-powered.com/mcp/line-count-text-discarded): Line count, text discarded is an MCP server for developer tools.
- [MODS titleInfo count, markup discarded](https://ai-powered.com/mcp/mods-titleinfo-count-markup-discarded): MODS titleInfo count, markup discarded is an MCP server for developer tools.
- [Markdown heading count, body discarded](https://ai-powered.com/mcp/markdown-heading-count-body-discarded): Markdown heading count, body discarded is an MCP server for files and documents.

---
Source: https://ai-powered.com/mcp/html-link-rel-count-markup-discarded
