MCP时间服务器
这是一个基于Express的时间服务API,提供多种格式的当前时间信息,支持MCP协议。
功能特点
- 提供ISO、Unix时间戳、人类可读等多种时间格式
- 支持MCP协议接口
- 支持CORS跨域请求
- 提供Docker容器化部署方案
API接口
GET /
- 欢迎页面,显示可用的API端点GET /time
- 获取所有时间格式GET /time/iso
- 获取ISO格式的当前时间GET /time/unix
- 获取Unix时间戳GET /time/human
- 获取人类可读的时间格式POST /mcp
- MCP协议接口
使用Docker部署
使用Docker Compose(推荐)
- 确保已安装Docker和Docker Compose
- 在项目根目录下运行:
docker-compose up -d
- 服务将在后台启动,访问 http://localhost:3000 查看API文档
使用Dockerfile
- 构建Docker镜像:
docker build -t mcp-time-server .
- 运行容器:
docker run -d -p 3000:3000 --name mcp-time-server mcp-time-server
- 访问 http://localhost:3000 查看API文档
本地开发
- 安装依赖:
npm install
- 启动开发服务器:
npm run dev
- 生产环境启动:
npm start
环境变量
PORT
- 服务器监听端口(默认:3000)
许可证
MIT
Related MCP Servers
View all os_automation servers →DesktopCommanderMCP
by wonderwhy-er
Desktop Commander MCP is a tool that allows users to search, update, manage files, and run terminal commands using AI, without incurring API token costs.
Daytona
by daytonaio
Daytona MCP Server allows AI agents to manage and interact with Daytona sandboxes, execute commands, perform file operations, and generate preview links for web applications.
apple-mcp
by supermemoryai
This is a collection of Apple-native tools for the Model Context Protocol (MCP) that integrates with various Apple applications to automate tasks and manage communications.
mcp-shrimp-task-manager
by cjo4m06
MCP Shrimp Task Manager is an intelligent task management system based on Model Context Protocol (MCP), designed to enhance programming workflows for AI Agents.
Cua Agent
by trycua
cua-mcp-server is a Model Context Protocol (MCP) server for the Computer-Use Agent (CUA), enabling integration with Claude Desktop and other MCP clients.
kubectl-mcp-server
by rohitg00
Kubectl MCP Server is a Model Context Protocol server for Kubernetes, enabling AI assistants to interact with Kubernetes clusters using natural language.
mcp-datetime
by ZeparHyfar
A datetime formatting service implemented as an MCP server for the Claude Desktop Application.