时间MCP服务器
提供获取当前时间与搜索国立国会图书馆书籍的工具。
快速入门
-
克隆代码库: git clone
cd example-mcp-server -
安装依赖: npm install
-
构建项目: npm run build
-
启动服务器: npm start
-
配置MCP客户端设置(如Claude): { "mcpServers": { "time": { "command": "node", "args": ["/path/to/example-mcp-server/dist/index.js"] } } }
-
使用示例工具方法:
- 获取当前时间:参数如 {"format": "iso", "timezone": "Asia/Tokyo"}
- 搜索NDL书籍:参数如 {"query": "夏目漱石", "maxResults": 5}