时间MCP服务器

时间MCP服务器

提供获取当前时间与搜索国立国会图书馆书籍的工具。

快速入门

  1. 克隆代码库: git clone cd example-mcp-server

  2. 安装依赖: npm install

  3. 构建项目: npm run build

  4. 启动服务器: npm start

  5. 配置MCP客户端设置(如Claude): { "mcpServers": { "time": { "command": "node", "args": ["/path/to/example-mcp-server/dist/index.js"] } } }

  6. 使用示例工具方法:

    • 获取当前时间:参数如 {"format": "iso", "timezone": "Asia/Tokyo"}
    • 搜索NDL书籍:参数如 {"query": "夏目漱石", "maxResults": 5}