التثبيت
أضف هذا إلى إعدادات MCP في عميلك (Claude Desktop: claude_desktop_config.json، وCursor: .cursor/mcp.json، ويستخدم VS Code وغيره الصيغة نفسها «mcpServers»).
time-mcp-pypiclaude mcp add time-mcp-server -- uvx time-mcp-pypi==1.1.1
{
"mcpServers": {
"time-mcp-server": {
"command": "uvx",
"args": [
"time-mcp-pypi==1.1.1"
]
}
}
}
التوثيق
مأخوذ من ملف README للمشروع على GitHub ويُحدَّث أسبوعيًا. تفتح الروابط على GitHub.
Time MCP Server
A minimal Model Context Protocol (MCP) server built with Python.
The server provides one simple tool:
get_current_utc_time- Gets the current UTC date and time in RFC 3339 format
Quick start
Prerequisites:
- Python 3.8 or later
- Claude Desktop or another MCP-compatible client
Install and run with:
pip install time-mcp-pypi # or from a local clone: pip install -e .
time-mcp-pypi
Configuration
To use this server with Claude Desktop, add the following to your MCP configuration file:
Windows
Add to %APPDATA%\Claude\claude_desktop_config.json:
{
"mcpServers": {
"time-server": {
"command": "time-mcp-pypi"
}
}
}
macOS
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"time-server": {
"command": "time-mcp-pypi"
}
}
}
Usage
Once configured, you can use the time tool in Claude Desktop:
- "What's the current UTC time?"
- "Give me an RFC 3339 timestamp"
Publishing New Versions
To publish a new version of the package:
- Update the version in
pyproject.toml, and commit asRelease x.y.z - Tag the release with a version number prefixed with 'v':
git tag v1.0.1 - Push the tag to trigger the publishing pipeline:
git push --tags
Then the CI/CD pipeline will automatically publish the package.
CI/CD
The project includes GitHub Actions workflows for:
- Build & Test - Builds and tests the Python package
- Publish - Automatically publishes to PyPI and creates GitHub releases on version tags
الأسئلة الشائعة
ما هو Time MCP Server؟
Get the current UTC time in RFC 3339 format.
كيف أثبّت Time MCP Server؟
يعمل على جهازك. في Claude Code: claude mcp add time-mcp-server -- uvx time-mcp-pypi==1.1.1. وفي العملاء الآخرين، الصق إعداد JSON من هذه الصفحة في إعدادات MCP الخاصة بهم.
هل يحتاج Time MCP Server إلى مفتاح API؟
لا يذكر إدراجه في السجل أي مفتاح أو سر إلزامي. قد تتطلب بعض الميزات حسابًا لدى الخدمة التي يتصل بها.
هل Time MCP Server مفتوح المصدر؟
نعم. شيفرته متاحة على GitHub بترخيص MIT.
من يصون Time MCP Server؟
ينشره domdomegg. يدرجه AI.tn لكنه لا يصونه ولا يوصي به.
من سجل MCP الرسمي. الإدراج ليس توصية: راجع شيفرة الخادم وصلاحياته قبل منحه الوصول إلى بياناتك.