# HrefGate

> HrefGate is a free MCP server for marketing and seo. Lint hreflang tags, sitemaps and page sets for code, x-default and return-link errors. It runs as a hosted remote server, so there is nothing to install locally.

- **Kind:** MCP server
- **Pricing:** Free
- **Platforms:** API, Web
- **Website:** https://hrefgate.mike-tusa.workers.dev
- **MCP Registry name:** dev.workers.mike-tusa.hrefgate/hrefgate
- **Categories:** marketing and SEO, developer tools
- **Listing updated:** 2026-11-16

## About

You paste HTML containing link rel alternate hreflang tags, an XML sitemap with xhtml:link alternates, or a JSON set of pages, and the checker reports problems with fixes. It flags malformed language, script and region codes such as en-UK, en_US or jp, relative hrefs, duplicate or conflicting codes, a missing x-default, a missing self-reference, canonical conflicts and missing reciprocal return links across pages.

The tool never fetches any URL, including the page_url you supply, and pasted content is checked in memory and discarded without being stored or logged. Rate limiting uses a one-way hash of the network address and date that expires after 9 days.

The same checks are available as a JSON API (about 30 per minute per IP, no key, OpenAPI 3.1 spec) and as a remote MCP server at the workers.dev address. It is free with no sign-up.

## Features

- **Code validation:** Catches mistakes like en-UK, en_US and jp, with suggested fixes.
- **Return-link check:** Verifies reciprocal links across a set of pages.
- **x-default and self-reference:** Flags missing x-default or self-referencing entries.
- **Canonical conflicts:** Detects rel canonical clashing with hreflang.
- **Multiple input forms:** Accepts HTML, an XML sitemap or a JSON page set.
- **No fetching, no storage:** Never requests URLs and discards submitted content.

## Good for

- Audit a multilingual site before launch
- Check a sitemap's alternates for missing return links
- Have an agent fix hreflang tags in a template
- Validate a batch of pages from a JSON export

## Install

### Claude Code (Terminal)

```sh
claude mcp add --transport http hrefgate https://hrefgate.mike-tusa.workers.dev/mcp
```

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

```sh
https://hrefgate.mike-tusa.workers.dev/mcp
```

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

```json
{
  "mcpServers": {
    "hrefgate": {
      "url": "https://hrefgate.mike-tusa.workers.dev/mcp"
    }
  }
}
```

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

```json
{
  "servers": {
    "hrefgate": {
      "type": "http",
      "url": "https://hrefgate.mike-tusa.workers.dev/mcp"
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "hrefgate": {
      "serverUrl": "https://hrefgate.mike-tusa.workers.dev/mcp"
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "hrefgate": {
      "type": "http",
      "url": "https://hrefgate.mike-tusa.workers.dev/mcp"
    }
  }
}
```

## FAQ

### Does it crawl my site?

No. It never fetches URLs; you paste the content.

### Is anything stored?

The site says submissions are checked in memory and discarded.

### What are the rate limits?

About 30 checks per minute per IP, with no key.

### Is it free?

Yes, free with no sign-up.

### Is HrefGate free?

Yes. HrefGate is free to use.

### How do I add HrefGate to Claude Code?

Run this command in your terminal: claude mcp add --transport http hrefgate https://hrefgate.mike-tusa.workers.dev/mcp

### What are the best alternatives to HrefGate?

The closest alternatives to HrefGate are REA, Codebase Memory, GitHub, Serena MCP: the IDE for your agent and XERJ.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [GitHub](https://ai-powered.com/mcp/github-2): GitHub is an open-source MCP server for developer tools.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.
- [Ouroboros](https://ai-powered.com/mcp/ouroboros): Ouroboros is an open-source MCP server for developer tools.
- [Claude Code Ultimate Guide](https://ai-powered.com/mcp/claude-code-ultimate-guide): Claude Code Ultimate Guide is an open-source MCP server for ai models and llm tooling.
- [Google Ads + Meta Ads + SEO/GEO MCP](https://ai-powered.com/mcp/google-ads-meta-ads-seo-geo-mcp): Google Ads + Meta Ads + SEO/GEO MCP is a freemium MCP server for marketing and seo.

---
Source: https://ai-powered.com/mcp/hrefgate
