MCP Example
About
MCP Example is an MCP server that integrates with the NASA NEO (Near Earth Object) API, allowing retrieval of near-Earth object information by date range. It is intended for developers who want to query NASA’s asteroid data through a Claude desktop app or any MCP‑compatible LLM.
Details
- Author
- fdmocho
- GitHub stars
- 1
- Downloads
- 274
- Categories
- Other
Jump to
- Integrates with NASA’s NEO (Near Earth Object) API.
- Retrieve asteroid data by start and end date.
- Simple installation via uv and Python.
- Configurable API key for NASA access.
- Compatible with Claude desktop and MCP Inspector.
Clone the repository, run uv install to set up dependencies, then add your NASA API key in apiconfig.py. Configure the server in your LLM’s MCP settings (e.g., claude_desktop_config.json) using the uv command pointing to main.py. The server exposes a single tool, getNeo(), which you call with start_date and end_date arguments.
MCP Server for NASA API integration.
NASA NEO API request by date
- Near Earth Object information retrieval by date
Clone repo and run:
uv install
Add you mcp server config to your LLM
Example Claude config file (_claude_desktop_config.json_)
{
"mcpServers": {
"nasa": {
"command": "uv",
"args": [
"--directory",
"<PATH TO YOUR PY>",
"run",
"main.py"
]
}
}
}
Tools:
_getNeo()_
- add your own api key in apiconfig.py (eg: apiconfig.example.py)
{
"method": "tools/call",
"params": {
"name": "getNeo",
"arguments": {
"start_date": "<START_DATE>",
"end_date": "<END_DATE>"
},
"_meta": {
"progressToken": 0
}
}
}
Other instructions (uv examples)
Create environment
uv init mcp-server-demo
cd mcp-server-demo
uv add "mcp[cli]"
uv run mcp
Usage: _mcp [OPTIONS] COMMAND [ARGS]_
MCP development tools
- Options
--help
Commands
_version_ > Show the MCP version
_dev_ > Run a MCP server with the MCP Inspector
_run_ > Run a MCP Server
_install_ > Install a MCP server in the Claude desktop app
Example _(open MCP dev Inspector)_:
uv run mcp dev <MYPYTHONFILE>
Example output:
Starting MCP inspector...
⚙️ Proxy server listening on port <PORT>
🔍 MCP Inspector is up and running at http://127.0.0.1:<PORT> 🚀
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.



