mcp-服务器-bwt
Bing 网站管理员工具的 MCP 服务器
该 MCP(模型上下文协议)服务器在受支持的 AI 助手(例如 Claude 或 Cursor)与 Bing 网站管理员工具 API 之间架起了一座桥梁。它将bing-webmaster-tools提供的所有 Bing 网站管理员工具功能以 MCP 工具的形式公开,AI 助手可以使用这些工具与您的 Bing 网站管理员工具帐户进行交互。
Claude 的示例用法
配置完成后,您可以使用 Claude 的 MCP 服务器与您的 Bing 网站管理员工具帐户进行交互。以下是一些示例提示:
“在 Bing 网站管理员工具中列出我所有已验证的网站”
“提交我的主页以供索引”
“获取我的网站的流量统计信息”
“检查我的网站是否存在任何抓取问题”
“获取‘我的产品’的关键字统计信息”
Claude 将使用适当的 MCP 工具来满足您的要求。
要求
Python >= 3.13
安装
要安装项目依赖项,请运行以下命令:
MCP 客户端配置示例(Claude、Cursor 等)
对于 Claude 或其他 MCP 客户端,您可以在设置中配置服务器:
可用工具
该服务器提供以下 Bing 网站管理员工具 API 功能(更多信息请参阅API 文档):
现场管理
get_sites:列出 Bing 网站管理员工具帐户中所有已验证的网站add_site:向您的帐户添加新网站verify_site:验证站点的所有权remove_site:从您的帐户中删除一个网站get_site_roles:获取特定站点的角色add_site_roles:向站点添加角色remove_site_role:从站点中删除角色get_site_moves:获取有关站点移动的信息submit_site_move:提交站点迁移请求
URL提交
submit_url:提交单个 URL 进行索引submit_url_batch:批量提交多个 URL 进行索引submit_content:提交内容以供索引submit_feed:提交供索引的 feedget_feeds:获取所有已提交的 feedget_feed_details:获取特定 feed 的详细信息remove_feed:从您的帐户中删除 feedget_url_submission_quota:检查您的 URL 提交配额get_content_submission_quota:检查您的内容提交配额fetch_url:获取用于索引的 URLget_fetched_urls:获取所有获取的 URLget_fetched_url_details:获取有关特定获取 URL 的详细信息
流量分析
get_query_stats:获取搜索查询的统计数据get_query_traffic_stats:获取搜索查询的流量统计信息get_query_page_stats:获取搜索查询的页面统计信息get_query_page_detail_stats:获取搜索查询的详细页面统计信息get_page_stats:获取页面统计信息get_page_query_stats:获取页面的查询统计信息get_rank_and_traffic_stats:获取排名和流量统计数据
爬行
get_crawl_stats:获取爬网统计数据get_crawl_settings:获取爬网设置save_crawl_settings:保存爬网设置get_crawl_issues:获取爬行问题
关键词分析
get_keyword:获取有关关键字的信息get_keyword_stats:获取关键字的统计信息get_related_keywords:获取相关关键字
链接分析
get_link_counts:获取链接数get_url_links:获取 URL 的链接get_deep_link:获取深层链接信息get_deep_link_blocks:获取深层链接块add_deep_link_block:添加深层链接块remove_deep_link_block:删除深层链接块update_deep_link:更新深层链接get_deep_link_algo_urls:获取深层链接算法 URLget_connected_pages:获取已连接页面add_connected_page:添加连接页面
内容管理
get_url_info:获取有关 URL 的信息get_url_traffic_info:获取 URL 的流量信息get_children_url_info:获取有关子 URL 的信息get_children_url_traffic_info:获取子 URL 的流量信息
内容拦截
get_blocked_urls:获取被阻止的 URLadd_blocked_url:将 URL 添加到阻止列表remove_blocked_url:从阻止列表中删除 URLget_active_page_preview_blocks:获取活动页面预览块add_page_preview_block:添加页面预览块remove_page_preview_block:删除页面预览块
区域设置
get_country_region_settings:获取国家/地区设置add_country_region_settings:添加国家/地区设置remove_country_region_settings:删除国家/地区设置
URL管理
get_query_parameters:获取查询参数add_query_parameter:添加查询参数remove_query_parameter:删除查询参数enable_disable_query_parameter:启用或禁用查询参数
发展
运行所有测试:
要构建应用程序:
要检查项目:
要格式化项目:
环境变量
需要以下环境变量:
BING_WEBMASTER_API_KEY:您的 Bing 网站管理员工具 API 密钥
启动服务器
要启动 MCP 服务器:
MCP 检查器
您可以使用 MCP 检查器来测试服务器:
执照
麻省理工学院
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Tools
模型上下文协议服务器使 Claude 等 AI 助手能够与 Bing 网站管理员工具 API 进行交互,从而允许用户管理网站、提交 URL 进行索引、分析流量以及通过自然语言访问其他网站管理员工具。
Related Resources
Related MCP Servers
- -security-license-qualityA Model Context Protocol server that enables AI assistants like Claude to perform Python development tasks through file operations, code analysis, project management, and safe code execution.Last updated -5
- Asecurity-licenseAqualityA Model Context Protocol server that integrates with Microsoft Bing Search API, allowing AI assistants to perform web, news, and image searches.Last updated -356MIT License
- Asecurity-licenseAqualityA Model Context Protocol server implementation that enables AI assistants like Claude to perform Google searches and retrieve web data directly through natural language requests.Last updated -119453MIT License
- Asecurity-licenseAqualityA Model Context Protocol server that provides web and image search capabilities through Google's Custom Search API, allowing AI assistants like Claude to access current information from the internet.Last updated -21