Sitemap MCP Server
The Sitemap MCP Server enables fetching, parsing, analyzing, and visualizing website sitemaps to understand site structure and content hierarchies.
Fetch and parse sitemap trees: Retrieve the complete sitemap structure of a website, with options to include detailed page information.
Get sitemap pages with filtering: Extract and filter pages using route paths or sitemap URLs, with support for cursor-based pagination for efficiently handling large sitemaps.
Get sitemap statistics: Obtain comprehensive metrics about a site's sitemap, including page counts, modification dates, subsitemap details, and priority metrics.
Parse sitemap content directly: Analyze sitemap data from XML or text content.
Advanced analysis capabilities: Check sitemap health, extract specific URLs, identify content gaps, and create visualizations (e.g., Mermaid.js diagrams) of sitemap structures.
Integration options: Use with tools like Claude Desktop through ready-to-use prompt templates.
References GitHub for project repository and asset hosting, though not a core integration
Handles Google News sitemaps, allowing for fetching and analyzing news-specific sitemap data
Creates Mermaid.js diagrams to visualize sitemap structures through the provided sitemap visualization prompts
Parses and processes XML sitemaps, extracting structure, URLs, and metadata from standard XML sitemap formats
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Sitemap MCP Serveranalyze the sitemap structure of example.com"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Sitemap MCP Server
Discover website architecture and analyze site structure by fetching, parsing, and visualizing sitemaps from any URL. Uncover hidden pages and extract organized hierarchies without manual exploration.
Includes ready-to-use prompt templates for Claude Desktop that let you analyze websites, check sitemap health, extract URLs, find missing content, and create visualizations with just a URL input.
Demo
Get answers to questions about any website leveraging the power of sitemaps.
Click on the "attach" button next to the tools button:
Then select visualize_sitemap:
Now we enter windsurf.com:
And we get a visualization of the sitemap:
Related MCP server: jcrawl4ai-mcp-server
Installation
Make sure uv is installed.
Installing in Claude Desktop, Cursor or Windsurf
Add this entry to your claude_desktop_config.json, Cursor settings, etc.:
{
"mcpServers": {
"sitemap": {
"command": "uvx",
"args": ["sitemap-mcp-server"],
"env": { "TRANSPORT": "stdio" }
}
}
}Restart Claude if it's running. For Cursor simply press refresh and/or enable the MCP Server in the settings.
Installing via Smithery
To install sitemap for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @mugoosse/sitemap --client claudeMCP Inspector
npx @modelcontextprotocol/inspector env TRANSPORT=stdio uvx sitemap-mcp-serverOpen the MCP Inspector at http://127.0.0.1:6274, select stdio transport, and connect to the MCP server.
# Start the server
uvx sitemap-mcp-server
# Start the MCP Inspector in a separate terminal
npx @modelcontextprotocol/inspector connect http://127.0.0.1:8050Open the MCP Inspector at http://127.0.0.1:6274, select sse transport, and connect to the MCP server.
SSE Transport
If you want to use the SSE transport, follow these steps:
Start the server:
uvx sitemap-mcp-serverConfigure your MCP Client, e.g. Cursor:
{
"mcpServers": {
"sitemap": {
"transport": "sse",
"url": "http://localhost:8050/sse"
}
}
}Local Development
For instructions on building and running the project from source, please refer to the DEVELOPERS.md guide.
Usage
Tools
The following tools are available via the MCP server:
get_sitemap_tree - Fetch and parse the sitemap tree from a website URL
Arguments:
url(website URL),include_pages(optional, boolean)Returns: JSON representation of the sitemap tree structure
get_sitemap_pages - Get all pages from a website's sitemap with filtering options
Arguments:
url(website URL),limit(optional),include_metadata(optional),route(optional),sitemap_url(optional),cursor(optional)Returns: JSON list of pages with pagination metadata
get_sitemap_stats - Get statistics about a website's sitemap
Arguments:
url(website URL)Returns: JSON object with sitemap statistics including page counts, modification dates, and subsitemap details
parse_sitemap_content - Parse a sitemap directly from its XML or text content
Arguments:
content(sitemap XML content),include_pages(optional, boolean)Returns: JSON representation of the parsed sitemap
Prompts
The server includes ready-to-use prompts that appear as templates in Claude Desktop. After installing the server, you'll see these templates in the "Templates" menu (click the + icon next to the message input):
Analyze Sitemap: Provides comprehensive structure analysis of a website's sitemap
Check Sitemap Health: Evaluates SEO and health metrics of a sitemap
Extract URLs from Sitemap: Extracts and filters specific URLs from a sitemap
Find Missing Content in Sitemap: Identifies content gaps in a website's sitemap
Visualize Sitemap Structure: Creates a Mermaid.js diagram visualization of sitemap structure
To use these prompts:
Click the + icon next to the message input in Claude Desktop
Select the desired template from the list
Fill in the website URL when prompted
Claude will execute the appropriate sitemap analysis
Examples
Fetch a Complete Sitemap
{
"name": "get_sitemap_tree",
"arguments": {
"url": "https://example.com",
"include_pages": true
}
}Get Pages with Filtering and Pagination
Filter by Route
{
"name": "get_sitemap_pages",
"arguments": {
"url": "https://example.com",
"limit": 100,
"include_metadata": true,
"route": "/blog/"
}
}Filter by Specific Subsitemap
{
"name": "get_sitemap_pages",
"arguments": {
"url": "https://example.com",
"limit": 100,
"include_metadata": true,
"sitemap_url": "https://example.com/blog-sitemap.xml"
}
}Cursor-Based Pagination
The server implements MCP cursor-based pagination to handle large sitemaps efficiently:
Initial Request:
{
"name": "get_sitemap_pages",
"arguments": {
"url": "https://example.com",
"limit": 50
}
}Response with Pagination:
{
"base_url": "https://example.com",
"pages": [...], // First batch of pages
"limit": 50,
"nextCursor": "eyJwYWdlIjoxfQ=="
}Subsequent Request with Cursor:
{
"name": "get_sitemap_pages",
"arguments": {
"url": "https://example.com",
"limit": 50,
"cursor": "eyJwYWdlIjoxfQ=="
}
}When there are no more results, the nextCursor field will be absent from the response.
Get Sitemap Statistics
{
"name": "get_sitemap_stats",
"arguments": {
"url": "https://example.com"
}
}The response includes both total statistics and detailed stats for each subsitemap:
{
"total": {
"url": "https://example.com",
"page_count": 150,
"sitemap_count": 3,
"sitemap_types": ["WebsiteSitemap", "NewsSitemap"],
"priority_stats": {
"min": 0.1,
"max": 1.0,
"avg": 0.65
},
"last_modified_count": 120
},
"subsitemaps": [
{
"url": "https://example.com/sitemap.xml",
"type": "WebsiteSitemap",
"page_count": 100,
"priority_stats": {
"min": 0.3,
"max": 1.0,
"avg": 0.7
},
"last_modified_count": 80
},
{
"url": "https://example.com/blog/sitemap.xml",
"type": "WebsiteSitemap",
"page_count": 50,
"priority_stats": {
"min": 0.1,
"max": 0.9,
"avg": 0.5
},
"last_modified_count": 40
}
]
}This allows MCP clients to understand which subsitemaps might be of interest for further investigation. You can then use the sitemap_url parameter in get_sitemap_pages to filter pages from a specific subsitemap.
Parse Sitemap Content Directly
{
"name": "parse_sitemap_content",
"arguments": {
"content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?><urlset xmlns=\"http://www.sitemaps.org/schemas/sitemap/0.9\"><url><loc>https://example.com/</loc></url></urlset>",
"include_pages": true
}
}Acknowledgements
This MCP Server leverages the ultimate-sitemap-parser library
Built using the Model Context Protocol Python SDK
License
This project is licensed under the MIT License. See the LICENSE file for details.
Available Tools
4 toolsget_sitemap_pagesB
Get all pages from a website's sitemap with optional limits and filtering options. Supports cursor-based pagination.
| Name | Required | Description | Default |
|---|---|---|---|
| cursor | No | Pagination cursor for fetching the next page of results | |
| include_metadata | No | Whether to include additional page metadata (priority, lastmod, etc.) | |
| limit | No | Maximum number of pages to return per page (0 for default of 100) | |
| route | No | Optional route path to filter pages by (e.g., '/blog') | |
| sitemap_url | No | Optional URL of a specific sitemap to get pages from | |
| url | Yes | The URL of the website homepage (e.g., https://example.com) |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries the full burden of behavioral disclosure. It mentions 'cursor-based pagination' which is valuable behavioral information, but doesn't address other important aspects like rate limits, authentication requirements, error conditions, or what happens when no sitemap exists. The description adds some context but leaves significant gaps.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is extremely efficient - just two sentences that convey the core functionality and key behavioral characteristic (pagination). Every word earns its place with zero redundancy or unnecessary elaboration.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a tool with 6 parameters, no annotations, and no output schema, the description provides basic functionality but lacks important context. It doesn't explain what the output looks like, how pagination works in practice, or what happens with edge cases. The description is complete enough to understand what the tool does at a high level, but insufficient for confident usage without additional trial-and-error.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, so the schema already fully documents all 6 parameters. The description mentions 'optional limits and filtering options' which aligns with parameters like 'limit' and 'route', but adds no additional semantic meaning beyond what's in the schema. This meets the baseline for high schema coverage.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the action ('Get all pages') and resource ('from a website's sitemap'), making the purpose immediately understandable. However, it doesn't explicitly differentiate from sibling tools like 'get_sitemap_stats' or 'get_sitemap_tree', which likely provide different types of sitemap information.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description mentions optional limits and filtering, but provides no guidance on when to use this tool versus alternatives like 'get_sitemap_stats' or 'parse_sitemap_content'. There's no indication of prerequisites, typical use cases, or scenarios where other tools might be more appropriate.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
get_sitemap_statsC
Get comprehensive statistics about a website's sitemap structure
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The URL of the website homepage (e.g., https://example.com) |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the full burden of behavioral disclosure. While 'Get comprehensive statistics' implies a read-only operation, it doesn't specify what 'comprehensive statistics' includes, whether it requires authentication, rate limits, error conditions, or how it interacts with the sitemap (e.g., fetching vs. analyzing). This leaves significant gaps for a tool with no annotation coverage.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, efficient sentence that directly states the tool's purpose without unnecessary words. It is appropriately sized and front-loaded, making it easy to parse quickly.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given no annotations and no output schema, the description is incomplete for a tool that presumably returns statistical data. It doesn't explain what 'comprehensive statistics' entails (e.g., counts, sizes, formats), how results are structured, or any behavioral traits. This leaves the agent with insufficient context to use the tool effectively.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The input schema has 100% description coverage, clearly documenting the single 'url' parameter. The description adds no additional parameter semantics beyond what the schema provides, such as format examples or constraints. With high schema coverage, the baseline score of 3 is appropriate as the schema does the heavy lifting.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the action ('Get comprehensive statistics') and resource ('about a website's sitemap structure'), making the purpose immediately understandable. However, it doesn't explicitly differentiate this tool from its siblings (get_sitemap_pages, get_sitemap_tree, parse_sitemap_content), which all relate to sitemaps but likely serve different purposes.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides no guidance on when to use this tool versus its siblings or alternatives. It doesn't mention prerequisites, constraints, or scenarios where this tool is preferred over others, leaving the agent to infer usage from the tool name alone.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
get_sitemap_treeC
Fetch and parse the sitemap tree from a website URL
| Name | Required | Description | Default |
|---|---|---|---|
| include_pages | No | Whether to include page details in the response | |
| url | Yes | The URL of the website homepage (e.g., https://example.com) |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries the full burden of behavioral disclosure. It mentions 'fetch and parse,' implying network interaction and data processing, but lacks details on error handling, rate limits, authentication needs, or what the parsed tree structure looks like. For a tool that interacts with external websites, this omission is significant and leaves key behavioral aspects unclear.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, efficient sentence that directly states the tool's function without unnecessary words. It is front-loaded with the core action ('fetch and parse') and resource ('sitemap tree'), making it easy to grasp quickly. Every part of the sentence contributes to understanding the tool's purpose.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool's complexity (involving network fetching and parsing), lack of annotations, and absence of an output schema, the description is incomplete. It doesn't address what the parsed tree output entails, potential errors (e.g., invalid URLs or sitemap formats), or performance considerations. For a tool that likely returns structured data, more context is needed to guide effective use.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, with clear documentation for both parameters ('url' and 'include_pages'). The description adds no additional parameter semantics beyond what the schema provides, such as explaining how 'include_pages' affects the parsed tree or providing examples of valid URL formats. Given the high schema coverage, a baseline score of 3 is appropriate, as the description doesn't compensate but also doesn't detract.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the action ('fetch and parse') and resource ('sitemap tree from a website URL'), making the tool's purpose understandable. However, it doesn't explicitly differentiate from sibling tools like 'get_sitemap_pages' or 'parse_sitemap_content', which likely handle similar sitemap-related tasks, leaving some ambiguity about when to choose this specific tool.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides no guidance on when to use this tool versus alternatives. It mentions fetching and parsing a sitemap tree, but doesn't specify scenarios where this is preferred over siblings like 'get_sitemap_pages' (which might retrieve individual pages) or 'parse_sitemap_content' (which might handle raw sitemap data). Without such context, users must infer usage from tool names alone.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
parse_sitemap_contentC
Parse a sitemap directly from its XML or text content
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | The content of the sitemap (XML, text, etc.) | |
| include_pages | No | Whether to include page details in the response |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries the full burden of behavioral disclosure. It states the tool parses sitemap content but doesn't mention error handling, output format, performance implications, or any side effects. For a tool with 2 parameters and no output schema, this is inadequate, as it leaves key behavioral traits unspecified.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, efficient sentence: 'Parse a sitemap directly from its XML or text content.' It is front-loaded with the core action and resource, with no wasted words. This makes it highly concise and well-structured for quick understanding.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool's complexity (2 parameters, no output schema, no annotations), the description is incomplete. It lacks details on what the parsed output looks like, how errors are handled, or any behavioral context. Without annotations or an output schema, the description should provide more context to be fully helpful, but it falls short.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The schema description coverage is 100%, so the input schema already documents both parameters ('content' and 'include_pages') thoroughly. The description adds no additional semantic details beyond what the schema provides, such as examples or constraints. Thus, it meets the baseline of 3, as the schema handles the heavy lifting.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool's purpose: 'Parse a sitemap directly from its XML or text content.' It specifies the verb ('parse') and resource ('sitemap'), and mentions the input format ('XML or text content'). However, it doesn't explicitly differentiate from sibling tools like 'get_sitemap_pages' or 'get_sitemap_tree,' which might have overlapping functionality, so it doesn't reach a 5.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides no guidance on when to use this tool versus alternatives. It doesn't mention sibling tools like 'get_sitemap_pages' or 'get_sitemap_stats,' nor does it specify prerequisites or exclusions. This lack of context leaves the agent without clear usage instructions, scoring a 2 for minimal guidance.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
4 tool updates
v1.0.0- First observed
get_sitemap_pages - First observed
get_sitemap_stats - First observed
get_sitemap_tree - First observed
parse_sitemap_content
TDQS
The tools have mostly distinct purposes with clear boundaries: get_sitemap_pages retrieves individual pages, get_sitemap_stats provides analytics, get_sitemap_tree handles hierarchical structure, and parse_sitemap_content processes raw content. However, get_sitemap_pages and get_sitemap_tree could potentially overlap in some use cases as both involve fetching sitemap data from a URL, though their outputs differ significantly.
All tool names follow a consistent verb_noun pattern with 'get_' or 'parse_' prefixes and snake_case formatting. This uniformity makes the tool set predictable and easy to understand at a glance, with no deviations in naming conventions.
With 4 tools, this server is well-scoped for its sitemap-focused purpose. Each tool serves a distinct function without redundancy, and the count is appropriate for covering core operations like retrieval, analysis, structure parsing, and content processing in this domain.
The tool set provides comprehensive coverage for sitemap operations, including fetching pages, analyzing statistics, parsing trees, and handling raw content. A minor gap exists in update or modification capabilities (e.g., editing or generating sitemaps), but this is reasonable for a read-focused server, and agents can work around this limitation.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
MCP server for web extraction and rendering via AceDataCloud WebExtrator
MCP server for Google search results via SERP API
MCP server for ScanMalware.com URL scanning, malware detection, and analysis.
Related MCP Servers
- FlicenseBqualityDmaintenanceAn MCP Server for Web scraping and Crawling, built using Crawl4AI224-
- AlicenseNot gradedqualityCmaintenanceJava implementation of MCP Server for Crawl4ai4MIT
- AlicenseNot gradedqualityDmaintenanceMCP server for intelligent web crawling using a ReAct agent. Adaptively explores websites and returns structured analysis.Apache 2.0
- FlicenseNot gradedqualityDmaintenancePython MCP server that scrapes web pages with JS rendering, structured metadata, tables, PDFs, screenshots, and multi-page crawling.-
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/mugoosse/sitemap-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server