时间服务器
获取当前时间的多种格式,支持ISO、Unix时间戳和人类可读格式。通过MCP协议接口,轻松集成时间服务到您的应用中。
Installation
Installing for Claude Desktop
Manual Configuration Required
This MCP server requires manual configuration. Run the command below to open your configuration file:
npx mcpbar@latest edit -c claude
This will open your configuration file where you can add the 时间服务器 MCP server manually.
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
Details:
Stars
0Forks
0Last commit
4 months agoRepository age
4 months
Auto-fetched from GitHub .
MCP servers similar to 时间服务器:

Stars
Forks
Last commit

Stars
Forks
Last commit

Stars
Forks
Last commit