Utility MCP Server

Utility MCP Server

A general-purpose MCP server providing time-related utilities such as fetching current time, Unix timestamps, and formatting services. It supports both local stdio and remote SSE communication modes for versatile AI client integration.

Category
Visit Server

README

MCP Server - 通用功能服务器

一个基于 Model Context Protocol (MCP) 的通用功能服务器,为 AI 提供扩展能力。

支持 本地模式 (stdio)远程模式 (SSE) 双模式运行。

✨ 功能

🕐 时间工具

工具 描述
get_current_time 获取指定时区的当前时间
get_timestamp 获取当前 Unix 时间戳
format_timestamp 将时间戳转换为可读格式

🚀 快速开始

安装依赖

# 使用 uv 安装依赖
uv sync

本地模式运行

uv run mcp-server

远程模式运行

uv run mcp-server --remote --port 8000

🔌 客户端集成

本地模式配置

适用于 Cursor / Claude Desktop:

{
  "mcpServers": {
    "utility-server": {
      "command": "uv",
      "args": ["--directory", "/path/to/mcp-server", "run", "mcp-server"]
    }
  }
}

远程模式配置

先启动远程服务器,然后使用 mcp-remote 适配器连接:

{
  "mcpServers": {
    "utility-server": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "http://your-server:8000/sse"]
    }
  }
}

🐳 Docker 部署

使用 Docker Compose(推荐)

# 构建并启动
docker compose up -d

# 查看日志
docker compose logs -f

# 停止
docker compose down

手动 Docker 命令

# 构建镜像
docker build -t mcp-server .

# 运行容器
docker run -d -p 8000:8000 --name mcp-server mcp-server

# 自定义端口
docker run -d -p 9000:9000 -e PORT=9000 --name mcp-server mcp-server

从 GitHub Container Registry 拉取

docker pull ghcr.io/love-gwen2025/mcp-server:main
docker run -d -p 8000:8000 ghcr.io/love-gwen2025/mcp-server:main

🧪 开发测试

使用 MCP Inspector 进行交互式测试:

uv run mcp dev src/mcp_server/server.py

📖 架构说明

┌─────────────────────────────────────────────────────────────┐
│  运行模式                                                    │
├─────────────────────────────────────────────────────────────┤
│                                                              │
│  本地模式 (--remote 未设置)                                  │
│  ├── 使用 stdio 传输                                         │
│  └── AI 客户端直接启动服务器进程                              │
│                                                              │
│  远程模式 (--remote)                                         │
│  ├── 使用 SSE 传输                                           │
│  ├── 监听 HTTP 端口                                          │
│  └── AI 客户端通过网络连接                                   │
│                                                              │
└─────────────────────────────────────────────────────────────┘

📄 许可证

MIT

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
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
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
Qdrant Server

Qdrant Server

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

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
E2B

E2B

Using MCP to run code via e2b.

Official
Featured