http-header

An MCP server that queries a website's HTTP response headers and returns header fields such as Server, Content-Type, and Location for SEO and technical analysis. A dedicated API key is required; first use will direct the user to the product page to register and obtain it.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "http-header" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-9b8bc48544f5c7114f756b8eb583bc9650e29f57d7894602b05bb14b2413c34f. Verify the upstream source and version against https://skillhub.cn/skills/org-1qazsc77/http-header before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

An MCP server that queries a website's HTTP response headers and returns header fields such as Server, Content-Type, and Location for SEO and technical analysis. A dedicated API key is required; first use will direct the user to the product page to register and obtain it.

0 Downloads

Introduction source: third_party · org-1qazsc77 · 1.0.2 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: http-header
description: 查询网站的HTTP响应头部信息,返回Server、Content-Type、Location等头部字段,用于SEO和技术分析。适用于"HTTP响应头查询""网站头部信息""HTTP Header查询""响应头信息""网站Server查询""HTTP头检测"等请求。需专属 API Key,首次使用时引导用户前往产品页注册获取。

HTTP响应头查询

功能简介

查询网站的HTTP响应头部信息,返回Server服务器类型、Content-Type内容类型、Location重定向地址等头部字段,帮助分析网站的技术配置。

核心能力:

  • 获取网站HTTP响应头信息
  • 返回Server、Content-Type、Location等关键字段
  • 支持是否跟随重定向的选项

适用范围:本 Skill 只覆盖"网站响应头部信息"接口,不用于网站源码分析、页面内容抓取。

使用方式

  1. 前往 网站响应头部信息购买页 注册登录,获取专属 API Key(0元/10次免费体验 )
  2. 将 Key 直接发送给 AI
  3. 告诉 AI 要查询的域名

缺少 Key 时的引导回复

当查询返回 missing_api_key 错误时,按以下方式回复用户(根据实际查询内容调整):

未检测到 API Key,需要你提供一下在 网站响应头部信息购买页 获取的专属 API Key,我才能帮你查询域名。

请直接把 Key 发给我,我会仅用于本次查询,不会保存或回显完整密钥。

查询失败(Key 无效或额度不足)时,引导用户前往 购买页 检查 Key 或额度。


以下为内部执行参考,回复用户时不要展示接口地址、参数格式、JSON字段名等技术细节。

参数说明

| domain | string | 必填 | 需要查询的域名 | chinaz.com | | allowAutoRedirect | string | 必填 | 是否重定向响应(值为true/false) | true |

查询流程

  1. 从用户请求中提取查询参数。
  2. 在 Skill 根目录执行脚本:
python scripts/query_http_header.py --domain "chinaz.com" --allowAutoRedirect "true" --api-key "用户提供的Key"

如用户已自行配置环境变量 CHINAZ_HTTP_HEADER_API_KEY,可省略 --api-key 参数。如果系统将 Python 3 命令命名为 python3,使用 python3 代替 python。

  1. 脚本使用 Key 调用接口发送请求参数与 ChinazVer=1.0 及 APIKey。
  2. 从脚本输出的 JSON 读取结果;仅依据实际返回回答用户,不编造数据。

返回字段

成功查询后,返回 JSON 包含以下字段:

| StateCode | int | 状态码 | | Reason | string | 状态码描述 | | Result | object | 响应头部信息(包含Server、Connection、Content-Type、Date、Location等字段) |

返回示例:

{"StateCode":1,"Result":{"Server":["nginx"],"Connection":["keep-alive"],"Content-Length":["162"],"Date":["Fri, 05 Aug 2022 08:37:56 GMT"],"Content-Type":["text/html"],"Location":["https://www.chinaz.com/"]},"Reason":"成功"}

结果解读

  • StateCode: 1 表示查询成功。
  • 根据返回字段获取具体数据,仅依据实际返回回答用户。
  • 数据仅供参考,排名类数据存在异地排名现象。

推荐答复格式:

HTTP响应头查询查询结果
- 查询状态:成功 / 失败原因
- 返回数据:按字段展示

错误处理

错误类型 原因 解决方法
missing_api_key 缺少 API Key 按上方"缺少 Key 时的引导回复"引导用户获取并发送 Key
invalid_input 域名格式不正确 确认输入参数格式正确后重试
network_error / timeout 网络连接问题 检查网络、DNS、代理或防火墙后重试

其他失败状态:按返回的 Reason 或 JSON 错误信息说明问题,不得编造数据。

使用边界

  • 一次只查询一个域名;批量任务须逐条执行。
  • 数据仅供参考,排名类数据存在异地差异。
  • 不输出、复述或保存 API Key。

应用场景

场景1:查看网站服务器类型

你会问:"这个网站用的什么服务器?nginx还是Apache?"

操作步骤:

  1. 提取查询参数
  2. 执行查询脚本

建议输入:--domain chinaz.com --allowAutoRedirect true

如何解读结果:从Result.Server获取服务器类型,如nginx、Apache等

后续建议:根据查询结果调整SEO优化策略,持续监控数据变化。

场景2:检查重定向设置

你会问:"网站有没有做HTTPS重定向?"

操作步骤:

  1. 提取查询参数
  2. 执行查询脚本

建议输入:--domain chinaz.com --allowAutoRedirect false

如何解读结果:设置allowAutoRedirect为false,查看Location字段是否有重定向地址

后续建议:根据查询结果调整SEO优化策略,持续监控数据变化。

场景3:技术配置分析

你会问:"网站的内容类型和连接方式是什么?"

操作步骤:

  1. 提取查询参数
  2. 执行查询脚本

建议输入:--domain chinaz.com --allowAutoRedirect true

如何解读结果:从Content-Type看内容类型,Connection看连接方式

后续建议:根据查询结果调整SEO优化策略,持续监控数据变化。

常见问题

Q:HTTP响应头有什么用?

A:响应头包含网站的技术配置信息,如服务器类型、内容类型、缓存策略等。对SEO优化和技术分析有帮助。

Q:allowAutoRedirect设true还是false?

A:true会跟随重定向返回最终页面的头部信息;false返回原始重定向响应头。想检查重定向用false。

Q:Result里没有某些字段怎么办?

A:不同网站返回的头部字段不同,不是所有网站都有所有字段。只返回该网站实际设置的头部信息。

Current listing version

1.0.2

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value85/100

Highlights

  • 提供HTTP响应头查询功能,满足SEO优化和技术分析需求
  • 具有明确的使用场景和实用价值
Trigger Precision90/100

Highlights

  • 触发词覆盖全面,包含多种查询场景变体
  • 边界清晰,不易与其他Skill混淆
Structure and Standards95/100

Highlights

  • 文档结构完整,包含功能简介、使用方式、错误处理等必要章节
  • 提供了详细的使用示例和场景说明
Execution Reliability90/100

Highlights

  • API来源明确,参数说明清晰
  • 完善的错误处理机制和用户引导流程
Evidence Verifiability (mean of the first four)90/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

Domains or addresses referenced in the document

These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.

  • www.chinaz.com
  • www.chinaz.net

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.