Token导航 LogoToken导航TokenDH.com
Seo MCP Tools logo
地图位置stdio官方级别未说明来源级核验

Seo MCP Tools

MCP Server

一个用于从robots.txt文件中提取和分析站点地图URL的SEO工具服务器。

工具数

0

提示词数

0

GitHub Stars

4

资源数

0
数据提取PythonClaudeClaude DesktopClaude

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

dalebertrand

提供方

dalebertrand

最后核验

2026/5/17 20:23

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

命令预览

pip install fastmcp advertools requests pandas

详细介绍

SEO MCP工具

一种模型上下文协议(MCP)服务器,提供用于分析robots.txt文件的SEO工具。此服务器实现了一组专门的工具,可以帮助从网络上的robots.txt文件中提取和分析站点地图信息。

特性

SEO MCP Tools服务器提供两个主要工具:

  1. 获取第一个网站地图URL:从robots.txt文件中提取第一个站点地图URL。
  2. 获取所有网站地图URL:从robots.txt文件中提取所有站点地图URL。

需求

  • Python 3.8+
  • FastMCP
  • 广告工具
  • 请求:
  • 熊猫

安装

  1. 克隆此存储库:
   git clone https://github.com/yourusername/seo-mcp-tools.git
   cd seo-mcp-tools
  1. 安装所需的依赖项:
   pip install fastmcp advertools requests pandas

用法

运行服务器

使用以下命令启动MCP服务器:

python mcp_server.py

或者,使用FastMCP开发工具进行交互式测试环境:

fastmcp dev mcp_server.py

MCP工具调用

获取第一个网站地图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}")

获取所有网站地图URL

# 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桌面集成

  1. 创建最小MCP配置文件:
   {
     "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"
     }]
   }
  1. 在Claude Desktop中安装:
   fastmcp install mcp_server.py

对于开发/测试模式,请使用: fastmcp dev mcp_server.py

测试

运行测试以验证服务器功能:

pytests

该测试套件包括对真实网站的robots.txt文件进行验证,以确保这些工具能够正确地处理各种robots.txt结构。

运作原理

服务器使用直接HTTP请求从URL中获取robots.txt文件,然后应用正则表达式模式来提取相关指令。这种方法确保了对来自各种网站的robots.txt文件的可靠解析,而不管格式差异如何。

许可证

麻省理工学院

目录标签

目录标签

数据提取PythonClaudeSEO工具本地部署站点地图分析网络爬虫

支持客户端

Claude DesktopClaude

接入字段

传输方式(transport,传输协议)

stdio

鉴权方式(authType,认证方式)

none

工具数量(toolCount,工具数)

0

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

stdionone部署方式未说明

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

来源信息

继续浏览同类 MCP