mcpField
N
NASA API Integration with MCP

NASA API Integration with MCP

github.com/jmand626IDEs & Editors1Updated 85w ago

About NASA API Integration with MCP

An MCP client integrating NASA APIs with a local LLM, enabling natural language queries for astronomy images, Mars rover photos, and near-Earth asteroid data.

Key features

  1. 01NASA API integration
  2. 02Local Ollama LLM support
  3. 03Astronomy image queries
  4. 04Mars rover data access
  5. 05Near-Earth asteroid tracking

Use cases

  1. 01Query today's astronomy picture
  2. 02Retrieve recent Mars rover photos
  3. 03Check near-Earth asteroid activity
  4. 04View Earth space imagery

MCP support

The client connects to NASA APIs via MCP, allowing the LLM to respond to natural language queries about astronomical data.

Details

From the project README

NASA API Integration with MCP

Quick Setup

  1. Install Ollama and the llama3.2 model
  2. Clone this repository
  3. Create a virtual environment: python -m venv venv
  4. Activate:
    • Windows: venv\Scripts\activate
    • Unix: source venv/bin/activate
  5. Install dependencies: pip install -r requirements.txt

Running the Project

Run the main application:

python mcp_chat.py

Run the test suite:

python test_suite.py

Example Queries

  • "Show me today's astronomy picture"
  • "What photos did Curiosity take recently?"
  • "Are there any asteroids passing near Earth?"
  • "Show me images of Earth from space"

Project Documentation

See my report for more info

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.