Beijing Time MCP Server

Beijing Time MCP Server

Enables users to query and retrieve the current Beijing time in multiple formats including standard, ISO 8601, and Chinese formats. Provides timezone information and Unix timestamps for time-related operations.

Category
Visit Server

README

Beijing Time MCP Server

一个用于查询北京时间的MCP(Model Context Protocol)服务器。

mcp-name: io.github.archerlliu/beijing-time-mcp

功能

  • 获取当前北京时间
  • 格式化时间输出
  • 支持多种时间格式
  • 提供时区信息

安装

从 PyPI 安装

pip install beijing-time-mcp

从源码安装

git clone https://github.com/archerliu/beijing-time-mcp.git
cd beijing-time-mcp
pip install -e .

使用方法

作为 MCP 服务器运行

beijing-time-mcp

在 Claude Desktop 中使用

在 Claude Desktop 的配置文件中添加:

{
  "mcpServers": {
    "beijing-time": {
      "command": "beijing-time-mcp"
    }
  }
}

可用工具

get_beijing_time

获取当前北京时间。

参数:

  • format (可选): 时间格式,默认为 "%Y-%m-%d %H:%M:%S"
    • "%Y-%m-%d %H:%M:%S" - 标准格式 (如: 2024-01-15 14:30:25)
    • "%Y-%m-%d" - 日期格式 (如: 2024-01-15)
    • "%H:%M:%S" - 时间格式 (如: 14:30:25)
    • "%Y年%m月%d日 %H时%M分%S秒" - 中文格式 (如: 2024年01月15日 14时30分25秒)

返回:

  • time: 格式化后的北京时间字符串
  • timezone: 时区信息
  • timestamp: Unix时间戳
  • iso_format: ISO 8601格式的时间

开发

安装开发依赖

pip install -e ".[dev]"

运行测试

pytest

代码格式化

black .
isort .

类型检查

mypy beijing_time_mcp

许可证

MIT License

贡献

欢迎提交 Issue 和 Pull Request!

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured