NASA API Integration with MCP

NASA API Integration with MCP

By jmand626 GitHub

The MCP Project for CSE 473 Winter 2025. Coded with the assistance of Cursor AI and Claude 3.7

Overview

what is the MCP Project?

The MCP Project is an integration of NASA's API with a custom application, designed for CSE 473 in Winter 2025, utilizing AI assistance from Cursor AI and Claude 3.7.

how to use the MCP Project?

To use the MCP Project, follow these steps:

  1. Install Ollama and the llama3.2 model.
  2. Clone the repository from GitHub.
  3. Create and activate a virtual environment.
  4. Install the required dependencies.
  5. Run the main application using the command python mcp_chat.py.

key features of the MCP Project?

  • Integration with NASA's API for real-time data.
  • Ability to query various NASA resources such as images and astronomy pictures.
  • Customizable application for educational purposes.

use cases of the MCP Project?

  1. Fetching today's astronomy picture.
  2. Retrieving recent photos taken by the Curiosity rover.
  3. Checking for asteroids passing near Earth.
  4. Displaying images of Earth from space.

FAQ from the MCP Project?

  • What programming language is used in the MCP Project?

The project is coded in Python.

  • Is there a test suite available?

Yes, you can run the test suite using the command python test_suite.py.

  • Where can I find the project documentation?

The project documentation is available in the report linked in the GitHub repository.

Content

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

No tools information available.
No content found.