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
时间服务器
Project Details
- 1259187996/time
- Last Updated: 3/7/2025
Recomended MCP Servers
An MCP server that can manage terminal sessions
This read-only MCP Server allows you to connect to Active Directory data from Claude Desktop through CData JDBC...
Repositório com um MCP-Server simples com seis tipos de mapas mentais diferentes.
Connect your chat repl to wolfram alpha computational intelligence
MCP server for analyzing TikTok data for insight extraction
Model Context Protocol server for Google Analytics, enabling LLMs to fetch and analyze web analytics data
Provides tools to clients over the Model Context Protocol
MCP Server for PolyMarket API
An MCP server implementation that provides tools for interacting with the [Telegram Bot API](https://core.telegram.org/bots/api).





