Cover image
Try Now
2025-04-11

3 years

Works with Finder

1

Github Watches

0

Github Forks

0

Github Stars

Time MCP Server

Model Context Protocol (MCP) サーバーで、現在の時刻情報と国立国会図書館の本を検索するためのツールを提供します。

機能

  • 様々なフォーマット(ISO、ロケール、UNIXタイムスタンプ)で現在の時刻を取得
  • 指定したタイムゾーンでの時刻表示
  • 国立国会図書館の本を検索

インストール

# リポジトリをクローン
git clone <repository-url>
cd example-mcp-server

# 依存関係をインストール
npm install

# プロジェクトをビルド
npm run build

使用方法

サーバーの実行

npm start

このサーバーは通信にstdioを使用するため、MCPクライアントと互換性があります。

MCP設定

このサーバーをMCPクライアント(Claudeなど)で使用するには、MCP設定ファイルに追加してください:

{
  "mcpServers": {
    "time": {
      "command": "node",
      "args": ["/path/to/example-mcp-server/dist/index.js"]
    }
  }
}

利用可能なツール

get_current_time

指定されたフォーマットとタイムゾーンで現在の時刻を返します。

パラメータ:

  • format (省略可能): 時刻フォーマット - "iso"、"locale"、"unix"のいずれか。デフォルトは "locale"。
  • timezone (省略可能): タイムゾーン文字列(例:"Asia/Tokyo"、"America/New_York")。デフォルトはシステムのタイムゾーン。

使用例:

{
  "format": "iso",
  "timezone": "Asia/Tokyo"
}

レスポンス例:

{
  "current_time": "2025-04-11T09:51:39.000Z",
  "format": "iso",
  "timezone": "Asia/Tokyo"
}

search_ndl_books

国立国会図書館の本を検索します。

パラメータ:

  • query (必須): 検索クエリ(例:書籍名、著者名など)。
  • maxResults (省略可能): 取得する最大件数。デフォルトは 10。

使用例:

{
  "query": "夏目漱石",
  "maxResults": 5
}

レスポンス例:

<feed xmlns="http://www.w3.org/2005/Atom">
  <title>NDL Search Results</title>
  <entry>
    <title>吾輩は猫である</title>
    <author>夏目漱石</author>
    <link href="https://ndl.go.jp/..." />
  </entry>
  <!-- 他のエントリ -->
</feed>

開発

# ホットリロードでの開発モードでの実行
npm run dev

ライセンス

ISC

相关推荐

  • NiKole Maxwell
  • I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • Beniyam Berhanu
  • Therapist adept at identifying core issues and offering practical advice with images.

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • lumpenspace
  • Take an adjectivised noun, and create images making it progressively more adjective!

  • apappascs
  • Découvrez la collection la plus complète et la plus à jour de serveurs MCP sur le marché. Ce référentiel sert de centre centralisé, offrant un vaste catalogue de serveurs MCP open-source et propriétaires, avec des fonctionnalités, des liens de documentation et des contributeurs.

  • ShrimpingIt
  • Manipulation basée sur Micropython I2C de l'exposition GPIO de la série MCP, dérivée d'Adafruit_MCP230XX

  • huahuayu
  • Une passerelle API unifiée pour intégrer plusieurs API d'explorateur de blockchain de type étherscan avec la prise en charge du protocole de contexte modèle (MCP) pour les assistants d'IA.

  • deemkeen
  • Contrôlez votre MBOT2 avec un combo d'alimentation: MQTT + MCP + LLM

  • jae-jae
  • MCP Server pour récupérer le contenu de la page Web à l'aide du navigateur sans tête du dramwright.

    Reviews

    4 (1)
    Avatar
    user_eqcDuWsM
    2025-04-17

    As a dedicated user of example-mcp-server created by katsuobushiFPGA, I'm truly impressed with its performance and reliability. This server has been a game-changer for managing my systems efficiently. The clean code and well-structured design show the author's expertise, making it an indispensable tool for anyone in need of a robust MCP application. Highly recommended for both beginners and advanced users!