BF

bingal/fastdomaincheck-mcp-server-python

效率工作流

本页由 AI 翻译,技术细节请以原文为准。 查看原文

21 stars 4 forks 质量 53 趋势 0MIT

MCP 服务器用于通过 WHOIS 和 DNS 通过 stdio 检查域名可用性。

概览

这是一个使用Python和模型上下文协议(MCP)实现的域名可用性检查服务器。它提供MCP工具,用于检查单个或多个域名是否已注册。 - 批量域名注册状态检查 - 使用 WHOIS 和 DNS 进行双重验证 - 支持国际化域名(IDN) - 简洁输出格式 - 内置输入验证和错误处理 检查多个域名的注册状态。 参数:- 域名:包含需要检查的域名字符串数组 - 每个域最大255字符长度 - 每个请求最多50个域名 - 不允许空域名 响应字段:- 结果:以域名为键,以检查结果为值的对象 - 注册:布尔 - true:域名已注册 - false:域名可用 工具在以下情况下会返回错误:1. 域名列表为空 2.请求中域名超过 50 个 3.域名为空 4.域名超过 255 字符 5.

概述(AI 翻译)

这是一个使用Python和模型上下文协议(MCP)实现的域可用性检查服务器。 它提供MCP工具,用于检查单个或多个域名是否已注册。

特色

  • 批量域名注册状态检查
  • 利用WHOIS和DNS进行双重验证
  • 支持IDN(国际化域名)
  • 简洁的输出格式
  • 内置输入验证和错误处理

工具文档

check_domains

检查多个域名的注册状态。

输入格式

参数:

  • domains:包含域名的字符串数组,需检查
  • 每个域最大字符长度为255个
  • 每个请求最多50个域
  • 不允许使用空域名

输出格式

响应字段:

  • results:以域名为键,检查结果为值的对象
  • registered:布尔算法
  • true:域名已注册
  • false:域名可用

错误处理

工具在以下情况下会返回错误:

  1. 空域列表
  2. 请求超过50个域名
  3. 空域名
  4. 域名字符超过255字符
  5. 结果序列化失败

错误响应格式:

用法示例

本页由 AI 翻译,技术细节请以原文为准。

README

FastDomainCheck MCP Server (Python)

This is a domain availability check server implemented using Python and the Model Context Protocol (MCP). It provides MCP Tools to check if single or multiple domain names are already registered.

Features

  • Bulk domain registration status checking
  • Dual verification using WHOIS and DNS
  • Support for IDN (Internationalized Domain Names)
  • Concise output format
  • Built-in input validation and error handling

Tool Documentation

check_domains

Check registration status for multiple domain names.

Input Format

{
  "domains": ["example.com", "test.com"]
}

Parameters:

  • domains: Array of strings containing domain names to check
    • Maximum length of 255 characters per domain
    • Maximum 50 domains per request
    • No empty domain names allowed

Output Format

{
  "results": {
    "example.com": {
      "registered": true
    },
    "test.com": {
      "registered": false
    }
  }
}

Response Fields:

  • results: Object with domain names as keys and check results as values
    • registered: Boolean
      • true: Domain is registered
      • false: Domain is available

Error Handling

The tool will return an error in the following cases:

  1. Empty domains list
  2. More than 50 domains in request
  3. Empty domain name
  4. Domain name exceeding 255 characters
  5. Result serialization failure

Error Response Format:

{
  "error": "Error: domains list cannot be empty"
}

Usage Examples

Check multiple domains:

Request

{
  "domains": ["example.com", "test123456.com"]
}

Response

{
  "results": {
    "example.com": {
      "registered": true
    },
    "test123456.com": {
      "registered": false
    }
  }
}

MCP Server Settings

Configuring FastDomainCheck MCP in Claude Deskto

Modify your claude-desktop-config.json file as shown below

{
  "mcpServers": {
    "fastdomaincheck": {
      "command": "uvx",
      "args": [
        "fastdomaincheck-mcp-server"
      ]
    }
  }
}

Go Version Reference

go version

Contributing

Feel free to open issues or submit pull requests.

License

MIT License (You should add a LICENSE file, typically containing the MIT license text)

在 GitHub 查看完整 README

安装

uvx fastdomaincheck-mcp-server
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "fastdomaincheck": { "command": "uvx", "args": [ "fastdomaincheck-mcp-server" ] } } }