Skip to content

Commit 7b89699

Browse files
Remove README content for retired NASA APIs and missing scripts (#14)
1 parent 06c45e2 commit 7b89699

2 files changed

Lines changed: 8 additions & 37 deletions

File tree

‎.env.example‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Copy to .env (never commit .env). Values here are placeholders.
22

3-
# api.nasa.gov key for APOD, NEO, DONKI and Mars Rover Photos.
3+
# api.nasa.gov key for APOD, NEO and DONKI.
44
# Get one at https://api.nasa.gov/ (DEMO_KEY works for light use).
55
NASA_API_KEY=YOUR_NASA_API_KEY
66

‎README.md‎

Lines changed: 7 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ The server can be configured with the following environment variables:
8282

8383
## Transport Modes
8484

85-
By default, the server runs over stdio for local MCP clients such as Cursor and Claude Desktop.
85+
By default, the server runs over stdio for local MCP clients such as Cursor.
8686

8787
To run the optional Streamable HTTP transport:
8888

@@ -105,13 +105,11 @@ This MCP server integrates the following NASA APIs:
105105
- EPIC (Earth Polychromatic Imaging Camera)
106106
- DONKI (Space Weather Database Of Notifications, Knowledge, Information)
107107
- Insight (Mars Weather Service)
108-
- Mars Rover Photos
109108
- NEO (Near Earth Object Web Service)
110109
- EONET (Earth Observatory Natural Event Tracker)
111110
- TLE (Two-Line Element)
112111
- NASA Image and Video Library
113112
- Exoplanet Archive
114-
- NASA Sounds API (Beta)
115113
- POWER (Prediction Of Worldwide Energy Resources)
116114

117115
2. **JPL Solar System Dynamics API** (ssd-api.jpl.nasa.gov):
@@ -143,20 +141,6 @@ Each NASA API is exposed through standardized MCP methods:
143141
}
144142
```
145143

146-
### Mars Rover Photos
147-
148-
```json
149-
{
150-
"method": "nasa/mars-rover",
151-
"params": {
152-
"rover": "curiosity", // Required: "curiosity", "opportunity", or "spirit"
153-
"sol": 1000, // Either sol or earth_date is required
154-
"earth_date": "2023-01-01", // YYYY-MM-DD format
155-
"camera": "FHAZ" // Optional: Filter by camera type
156-
}
157-
}
158-
```
159-
160144
### Near Earth Objects
161145

162146
```json
@@ -254,7 +238,6 @@ Example log messages:
254238
```
255239
[INFO] NASA MCP Server initialized successfully
256240
[INFO] Processing APOD request for date: 2023-01-01
257-
[INFO] Fetching Mars Rover data for Curiosity, sol 1000
258241
[WARNING] Rate limit threshold reached (80%)
259242
[ERROR] Invalid parameter: 'date' must be in YYYY-MM-DD format
260243
```
@@ -285,26 +268,23 @@ cp .env.example .env
285268
# Build the TypeScript code
286269
npm run build
287270

288-
# Start the development server
289-
npm run dev
271+
# Start the server
272+
npm start
290273

291274
# Run tests
292275
npm test
293276
```
294277

295278
## Testing with MCP Inspector
296279

297-
The NASA MCP Server includes a script to help you test the APIs using the MCP Inspector:
280+
To test the tools interactively, build the project and start the official [MCP Inspector](https://github.com/modelcontextprotocol/inspector) with the server:
298281

299282
```bash
300-
# Run the provided test script
301-
./scripts/test-with-inspector.sh
283+
npm run build
284+
npx @modelcontextprotocol/inspector node dist/index.js
302285
```
303286

304-
This will:
305-
1. Build the project to ensure the latest changes are included
306-
2. Start the MCP Inspector with the NASA MCP server running
307-
3. Allow you to interactively test all the NASA APIs
287+
The server reads `NASA_API_KEY` and `FIRMS_MAP_KEY` from a `.env` file in the working directory (see Development above). The Inspector prints a local URL; open it to list and call the tools.
308288

309289
### Example Test Requests
310290

@@ -346,15 +326,6 @@ const apodResult = await client.request({
346326
}
347327
}, CallToolResultSchema);
348328

349-
// Example: Get Mars Rover photos
350-
const marsRoverResult = await client.request({
351-
method: "tools/call",
352-
params: {
353-
name: "nasa/mars-rover",
354-
arguments: { rover: "curiosity", sol: 1000 }
355-
}
356-
}, CallToolResultSchema);
357-
358329
// Example: Search for Near Earth Objects
359330
const neoResults = await client.request({
360331
method: "tools/call",

0 commit comments

Comments
 (0)