NASA Astronomy Picture of the Day
About
Integrates with NASA's Astronomy Picture of the Day API to retrieve daily space images and descriptions directly within the Cursor IDE development environment.
Details
- Author
- liuwanglei-tal
- Repository
- liuwanglei-tal/nasa-mcp
- License
- MIT License
- Categories
- AI, Design, Developer Tools, Media, Project Management, Frontend
- Tags
- #mobile
Jump to
Setting up with Highlight
This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:
- Download and install Highlight from highlightai.com/download
- Navigate to the plugins tab and select "Add Custom Plugin"
-
Configure the plugin with the settings below
Plugin Name
NASA Astronomy Picture of the DayCommand (node, npx, python, etc.)npxArguments-
Argument 1
-y -
Argument 2
@highlight/mcp-server
Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.
-
Argument 1
- Enable "Start Automatically" if you want the plugin to start when Highlight launches
获取今天的天文图片
获取 NASA 每日天文图片的标题、描述和 URL 等信息。
获取火星照片
根据指定日期和火星探测器获取火星照片。支持探测器包括好奇号、机遇号、勇气号和毅力号。
获取地球卫星图像
根据经纬度获取地球的卫星图像,支持历史图像查询并提供高分辨率照片。
获取近地天体数据
获取指定日期的近地小行星信息,包括小行星的大小、距离、速度和危险系数评估。
获取太空天气信息
获取实时的太空天气状况,包括太阳耀斑事件和日冕物质抛射数据。
Claude Desktop / Cursor
Paste into your MCP client config file to install this server.
{
"mcpServers": {
"nasa astronomy picture of the day": {
"env": {},
"args": [
"-y",
"@highlight/mcp-server"
],
"command": "npx"
}
}
}
Linux
{
"env": [],
"args": [
"-y",
"@highlight/mcp-server"
],
"command": "npx"
}
Macos
{
"env": [],
"args": [
"-y",
"@highlight/mcp-server"
],
"command": "npx"
}
Windows
{
"env": [],
"args": [
"/c",
"npx",
"-y",
"@highlight/mcp-server"
],
"command": "cmd"
}
NASA MCP Service
一个功能丰富的 NASA 数据查询 MCP 工具,支持多种 NASA API 服务和自然语言查询。
功能特点
- 天文图片服务 (APOD)
- 获取 NASA 每日天文图片
- 支持历史日期查询
- 返回图片标题、描述、URL等信息
- 火星探测器照片 (Mars Rovers)
- 支持多个火星探测器:好奇号(Curiosity)、机遇号(Opportunity)、勇气号(Spirit)、毅力号(Perseverance)
- 按日期查询火星照片
- 获取不同相机拍摄的图片
- 地球卫星图像 (Earth)
- 根据经纬度获取卫星图像
- 支持历史图像查询
- 提供高分辨率卫星照片
- 近地天体数据 (NEO - Near Earth Objects)
- 获取特定日期的近地小行星信息
- 包含小行星大小、距离、速度等数据
- 危险系数评估
- 太空天气数据 (Space Weather)
- 太阳耀斑事件信息
- 日冕物质抛射数据
- 实时太空天气状况
Cursor 安装
1. 打开 Cursor IDE
2. 在命令面板中输入:
/mcp install @cursor/nasa-mcp
配置
1. 访问 NASA API 门户
2. 获取你的 API key
3. 设置环境变量 NASA_API_KEY 或在使用时通过参数传入
使用方法
在 Cursor 中使用
# 获取今天的天文图片
今天的天文图
获取火星照片
火星 好奇号 2024年3月18日
获取地球卫星图像
地球 39.9042,116.4074
获取近地天体数据
近地小行星 2024年3月18日
获取太空天气信息
太空天气 今天
在 Node.js 中使用
const client = require('@smithery/client');
async function main() {
// 获取火星照片
const marsPhotos = await client.call('@cursor/nasa-mcp', '火星 好奇号 今天');
// 获取近地天体数据
const neoData = await client.call('@cursor/nasa-mcp', '近地小行星 今天');
console.log(marsPhotos);
console.log(neoData);
}
main();
命令行使用
# 使用环境变量中的 API key
echo "火星 好奇号 今天" | NASA_API_KEY=your_api_key node nasa-mcp.js
使用自定义 API key
echo "地球 39.9042,116.4074" | node nasa-mcp.js --api_key=your-api-key
返回数据格式
天文图片 (APOD)
{
"标题": "图片标题",
"日期": "2024-03-19",
"说明": "详细解释",
"图片链接": "图片URL",
"媒体类型": "image",
"版权": "版权信息"
}
火星照片
{
"火星车": "curiosity",
"日期": "2024-03-19",
"照片数量": 5,
"照片列表": [
{
"id": 1234567,
"拍摄时间": "2024-03-19",
"相机": "NAVCAM",
"图片链接": "https://..."
}
]
}
近地天体数据
{
"日期": "2024-03-19",
"小行星数量": 5,
"小行星列表": [
{
"名称": "小行星名称",
"直径": {
"最小": 100,
"最大": 200
},
"是否危险": "否",
"最近距离": "1000000 公里",
"相对速度": "50000 公里/小时"
}
]
}
太空天气数据
{
"日期": "2024-03-19",
"太阳耀斑": [
{
"开始时间": "2024-03-19T10:00:00Z",
"结束时间": "2024-03-19T11:00:00Z",
"等级": "M2.5",
"位置": "N30W60"
}
],
"日冕物质抛射": [
{
"时间": "2024-03-19T12:00:00Z",
"速度": "800 km/s",
"类型": "CME"
}
]
}
许可证
MIT
作者
simon liu2a:["$","div",null,{"className":"my-8 pb-8 h-full max-w-5xl mx-auto","children":["$","div",null,{"className":"grid grid-cols-1 md:grid-cols-3 gap-6","children":["$","$L31",null,{"mcp":{"id":"mcp_kAEo6lLxCyOU","name":"NASA Astronomy Picture of the Day","description":"Integrates with NASA's Astronomy Picture of the Day API to retrieve daily space images and descriptions directly within the Cursor IDE development environment.","logo":"https://avatars.githubusercontent.com/liuwanglei-tal","banner_url":null,"stars":0,"downloads":0,"categories":["ai","design","dev","media","machine-learning","project-management","mobile","frontend"],"isRecommended":false,"created_at":"2025-04-17T01:24:47.009071+00:00","updated_at":"2025-04-17T01:50:33.016459+00:00","author":"liuwanglei-tal","average_rating":0,"total_ratings":0,"github_url":"https://github.com/liuwanglei-tal/nasa-mcp","commit":"main","official":false,"bundler_compatible":false,"mcp_language":1,"slug":"liuwanglei-tal-nasa-astronomy-picture-of-the-day","website":null,"is_sse":false,"summary":"NASA APOD MCP Service provides access to NASA's Astronomy Picture of t
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.




