MCP Server for NASA API logo

MCP Server for NASA API

by fdmocho

This MCP server allows you to retrieve Near Earth Object (NEO) information from the NASA API by date. It's designed to integrate with LLMs via MCP (Message Communication Protocol).

View on GitHub

Last updated: N/A

What is MCP Server for NASA API?

This is an MCP server that provides access to NASA's Near Earth Object (NEO) API. It allows you to retrieve information about NEOs within a specified date range.

How to use MCP Server for NASA API?

  1. Clone the repository. 2. Install dependencies using uv install. 3. Add your MCP server configuration to your LLM's configuration file (e.g., claude_desktop_config.json). 4. Add your NASA API key to apiconfig.py. 5. Use the getNeo tool with a start and end date to retrieve NEO data.

Key features of MCP Server for NASA API

  • NEO data retrieval by date

  • Integration with LLMs via MCP

  • Uses NASA API

  • Configurable API key

Use cases of MCP Server for NASA API

  • Retrieving NEO data for research

  • Integrating NEO data into LLM-based applications

  • Educational purposes

  • Building astronomy-related tools

FAQ from MCP Server for NASA API

What is MCP?

MCP (Message Communication Protocol) is a protocol for communication between applications, often used in the context of LLMs.

Where do I get a NASA API key?

You can obtain a NASA API key from the NASA Open APIs website (api.nasa.gov).

How do I specify the date range?

The getNeo tool accepts start_date and end_date arguments in the format YYYY-MM-DD.

What kind of data does the API return?

The API returns data about Near Earth Objects, including their name, estimated diameter, close approach data, and more.

How do I run the server in development mode?

Use the command uv run mcp dev <MYPYTHONFILE> to start the server with the MCP Inspector.