SEO MCP Tools
Click on "Deploy 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., "@SEO MCP Toolsget the first sitemap from example.com's robots.txt"
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.
SEO MCP Tools
A Model Context Protocol (MCP) server that provides SEO tools for analyzing robots.txt files. This server implements a set of specialized tools that help extract and analyze sitemap information from robots.txt files across the web.
Features
The SEO MCP Tools server provides two primary tools:
Get First Sitemap URL: Extract the first sitemap URL from a robots.txt file.
Get All Sitemap URLs: Extract all sitemap URLs from a robots.txt file.
Related MCP server: Webpage MCP Server
Requirements
Python 3.8+
FastMCP
advertools
requests
pandas
Installation
Clone this repository:
git clone https://github.com/yourusername/seo-mcp-tools.git cd seo-mcp-toolsInstall the required dependencies:
pip install fastmcp advertools requests pandas
Usage
Running the Server
Start the MCP server with:
python mcp_server.pyAlternatively, use the FastMCP development tools for an interactive testing environment:
fastmcp dev mcp_server.pyMCP Tool Calls
Get First Sitemap URL
from mcp_client import MCP_Client # Assuming you're using an MCP client
client = MCP_Client("http://localhost:8000")
# Extract the first sitemap URL from a robots.txt file
first_sitemap = client.call("get_sitemap_url_from_robots_txt", {
"robots_txt_url": "https://example.com/robots.txt"
})
print(f"First sitemap URL: {first_sitemap}")Get All Sitemap URLs
# Extract all sitemap URLs from a robots.txt file
all_sitemaps = client.call("get_all_sitemap_urls_from_robots_txt", {
"robots_txt_url": "https://example.com/robots.txt"
})
print(f"All sitemap URLs: {all_sitemaps}")Claude Desktop Integration
Create a minimal MCP configuration file:
{ "version": "v1", "endpoints": [{ "name": "SEO Tools", "transport": { "type": "stdio", "command": { "path": "/path/to/python", "args": ["/path/to/mcp_server.py"] } }, "input_format": "json", "output_format": "json" }] }Install in Claude Desktop:
fastmcp install mcp_server.py
For development/testing mode, use: fastmcp dev mcp_server.py
Testing
Run the tests to verify server functionality:
pytestsThe test suite includes validation against real websites' robots.txt files to ensure the tools work correctly with various robots.txt structures.
How It Works
The server uses direct HTTP requests to fetch robots.txt files from URLs, then applies regular expression patterns to extract relevant directives. This approach ensures reliable parsing of robots.txt files from various websites, regardless of formatting differences.
License
MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
One MCP for the Web. Easily search, crawl, navigate, and extract websites without getting blocked.…
Source-first URL clone, capture, rebuild, and fidelity verification tools.
Robots-aware website audits, pre-crawl quotes, and structured evidence for people and agents.
Web search, URL content extraction to Markdown, site mapping, and recursive web crawler.
Related MCP Servers
- FlicenseNot gradedqualityNot gradedmaintenanceEnables querying and retrieving webpage content from websites by parsing sitemap.xml files and fetching HTML content from specified URLs. Includes built-in rate limiting and supports listing available pages and accessing raw sitemap data.-
- FlicenseNot gradedqualityNot gradedmaintenanceEnables querying and retrieving webpage content from websites by parsing sitemap.xml files and fetching HTML content from specified URLs. Includes rate limiting protection and supports listing all available pages from a sitemap.-
- FlicenseNot gradedqualityNot gradedmaintenanceEnables querying and retrieving webpage content from websites by parsing sitemap.xml files and fetching HTML content from specified URLs. Includes built-in rate limiting for responsible web scraping.-
- FlicenseNot gradedqualityNot gradedmaintenanceEnables querying and retrieving content from webpages by parsing sitemap.xml files and fetching HTML content from specified URLs. Includes built-in rate limiting for protection against abuse.-