nasa
MCP server from marcos2872/nasa-mcp-server
claude mcp add --transport stdio marcos2872-nasa-mcp-server node index.js \ --env NASA_API_KEY="your NASA API key"
How to use
This NASA MCP server exposes a set of tools that allow you to access NASA public APIs via the Model Context Protocol (MCP). The server provides utilities to fetch Astronomy Picture of the Day (APOD), search NASA images and media, retrieve Mars rover photos, obtain near-Earth object (NEO) data, and fetch Earth imagery. Integrated with MCP clients, you can ask natural language questions and the MCP client will route them to the appropriate tool. For example, you can request the APOD for today, search Martian rover photos, check which asteroids are near Earth today, or request satellite imagery for specific coordinates.
To use the tools, ensure your MCP client is configured to communicate with the NASA MCP server (in this project, the server name is nasa). The server expects your NASA API key to be provided via environment variable NASA_API_KEY. When configuring clients like Claude Desktop, you can provide the NASA_API_KEY in the environment section, and use the nasa server to handle queries through the available commands.
How to install
Prerequisites:
- Node.js v14+ installed on your machine
- npm (or yarn) available
- NASA API key (free) from https://api.nasa.gov/
Installation steps:
- Clone or download the repository
- Install dependencies
npm install - Provide your NASA API key as an environment variable
- Linux/macOS:
export NASA_API_KEY="your_key_here" - Windows (CMD):
set NASA_API_KEY=your_key_here - Windows (PowerShell):
$env:NASA_API_KEY="your_key_here"
- Linux/macOS:
- Run the server
- Local run (development):
node index.js - Global installation (optional):
Then start via:npm install -g .nasa-mcp-server
- Local run (development):
Additional notes
Tips and common issues:
- Ensure NASA_API_KEY is set in the environment where the MCP server runs; the server will fail to fetch data without a valid key.
- API rate limits: NASA free API keys have usage limits; if you hit the limit, wait or rotate keys.
- If testing with MCP clients, you can wire the nasa server in your MCP client configuration (example in Claude Desktop) by specifying the command and environment as shown in the README example.
- When running locally, verify that index.js is in the project root or update the args in mcp_config to point to the correct entry file.
- Network connectivity and firewall rules can affect access to NASA endpoints; ensure outbound HTTP requests are allowed.
Related MCP Servers
zen
Selfhosted notes app. Single golang binary, notes stored as markdown within SQLite, full-text search, very low resource usage
MCP -Deepseek_R1
A Model Context Protocol (MCP) server implementation connecting Claude Desktop with DeepSeek's language models (R1/V3)
mcp-fhir
A Model Context Protocol implementation for FHIR
mcp
Inkdrop Model Context Protocol Server
mcp-appium-gestures
This is a Model Context Protocol (MCP) server providing resources and tools for Appium mobile gestures using Actions API..
dubco -npm
The (Unofficial) dubco-mcp-server enables AI assistants to manage Dub.co short links via the Model Context Protocol. It provides three MCP tools: create_link for generating new short URLs, update_link for modifying existing links, and delete_link for removing short links.