Skip to main content
Glama

NASA MCP Service

smithery.json2.78 kB
{ "name": "@cursor/nasa-apod-mcp", "version": "1.0.0", "displayName": "NASA天文图片 MCP", "description": "通过自然语言获取 NASA 每日天文图片(APOD)的 MCP 工具,支持自定义API密钥和指定日期", "author": "simon liu", "repository": { "type": "git", "url": "https://github.com/liuwanglei-tal/nasa-mcp" }, "license": "MIT", "keywords": [ "nasa", "apod", "astronomy", "mcp", "cursor" ], "category": "Content Fetching", "server": { "type": "node", "entry": "nasa-mcp.js", "parameters": { "api_key": { "type": "string", "description": "NASA API Key", "required": false, "default": "${NASA_API_KEY}" }, "date": { "type": "string", "description": "指定日期 (YYYY-MM-DD格式)", "required": false } } }, "examples": [ { "input": "今日天文图", "description": "获取今天的天文图片" }, { "input": "2024年1月1日的天文图片 --date=2024-01-01", "description": "获取指定日期的天文图片" }, { "input": "今日天文图 --api_key=your-nasa-api-key", "description": "使用自定义API key获取今天的天文图片" } ], "documentation": { "setup": "## 配置\n1. 访问 [NASA API 门户](https://api.nasa.gov/)\n2. 获取你的 API key\n3. 设置环境变量 `NASA_API_KEY` 或在调用时传入 `api_key` 参数", "usage": "## Cursor中使用\n```\n/mcp install @cursor/nasa-apod-mcp\n\n# 获取今天的天文图片\n今日天文图\n\n# 获取指定日期的天文图片\n2024年1月1日的天文图片 --date=2024-01-01\n\n# 使用自定义API key\n今日天文图 --api_key=your-nasa-api-key\n```\n\n## Node.js中使用\n```javascript\nconst client = require('@smithery/client');\n\nasync function main() {\n // 获取今天的天文图片\n const result = await client.call('@cursor/nasa-apod-mcp', '今日天文图');\n \n // 获取指定日期的天文图片\n const resultWithDate = await client.call('@cursor/nasa-apod-mcp', '2024年1月1日的天文图片', {\n date: '2024-01-01'\n });\n \n // 使用自定义API key\n const resultWithKey = await client.call('@cursor/nasa-apod-mcp', '今日天文图', {\n api_key: 'your-nasa-api-key'\n });\n \n console.log(result);\n}\n\nmain();\n```" }, "main": "nasa-mcp.js", "type": "node", "dependencies": { "axios": "^1.6.7" }, "scripts": { "start": "node nasa-mcp.js" } }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/liuwanglei-tal/nasa-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server