Skip to main content
Glama
ssl-expiry-checker-mcp

ssl-expiry-checker-mcp

by tojoevan

SSL 证书到期检查器 MCP 服务器

一个基于 MCP (Model Context Protocol) 的 SSL 证书到期检查工具,可以快速检查任何网站的 SSL 证书有效期。

功能特性

  • 🔍 检查任意域名的 SSL 证书到期时间

  • ⏰ 计算证书剩余有效天数

  • 🚨 智能状态提示(已过期/即将过期/有效)

  • 🌐 支持多种 URL 格式输入

Related MCP server: ssl-doctor

安装

确保已安装 Python 3.11 或更高版本,然后使用 uv 安装依赖:

uv sync

使用方法

作为 MCP 服务器运行

uv run main.py

在 Claude Desktop 中配置

编辑 Claude Desktop 配置文件:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

Windows: %APPDATA%\Claude\claude_desktop_config.json

添加以下配置:

{
  "mcpServers": {
    "ssl-checker": {
      "command": "uv",
      "args": [
        "--directory",
        "/path/to/ssl-expiry-checker-mcp",
        "run",
        "main.py"
      ]
    }
  }
}

工具说明

ssl_expiry_checker

检查给定网址的 SSL 证书有效期。

参数:

  • url (string): 要检查的网址,支持以下格式:

    • example.com

    • https://example.com

    • www.example.com

返回: 包含证书到期信息的详细报告

示例输出

**SSL 证书检查结果**
目标网址: https://example.com
域名: example.com
到期时间: 2026-12-31 23:59:59 UTC
剩余天数: 305 天
状态: ✅ 证书有效

状态说明

  • ✅ 证书有效: 剩余天数 ≥ 7 天

  • ⚠️ 证书即将过期: 剩余天数 < 7 天

  • ⏳ 证书将在今天过期: 剩余天数 = 0 天

  • 🚨 证书已过期: 剩余天数 < 0 天

技术栈

  • Python 3.11+

  • FastMCP

  • 标准库: ssl, socket, urllib

许可证

MIT

Available Tools

1 tool
ssl_expiry_checkerA
检查给定网址的 SSL 证书有效期。

Args:
    url (str): 要检查的网址 (例如: example.com 或 https://example.com)

Returns:
    str: 包含证书到期信息或错误详情。

Inputs: url (required). Returns: result

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.8/5.0

    Scored across 1 tool

    Disambiguation5/5

    Only one tool exists, so there is no possibility of confusion between tools. The tool's purpose is clearly defined and distinct.

    Naming Consistency5/5

    With a single tool, naming is inherently consistent. The name 'ssl_expiry_checker' is descriptive and follows a clear pattern.

    Tool Count3/5

    The server has only one tool, which is minimal for its domain. While it serves a focused purpose, it falls short of the typical 3-15 tool range for a well-scoped server.

    Completeness4/5

    The single tool covers the core functionality of checking SSL certificate expiry for a given URL. However, it lacks additional tools for batch checks, certificate details, or alerting, which would enhance completeness.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      D
      maintenance
      Enables monitoring of domain registration information via WHOIS lookup and SSL certificate validity checking. Provides domain expiration dates, registrar details, certificate validity periods, and issuer information for website security monitoring.
      2
      14 npm
      4
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables live TLS/SSL certificate health checks for any hostname, providing expiry, hostname match, trust verdict, and a health score. Supports both free and paid deep tiers with protocol/cipher analysis.
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI agents to check SSL/TLS certificate validity, expiry, issuer, chain details, and security grade for any domain via pay-per-call x402 micropayments.
      MIT