How to Use the NASA Mars — Rover Photos from the Red Planet MCP in OpenAI Agents SDK
Build production agents with OpenAI Agents SDK that query raw photos and manifests directly from the Martian surface.
Works with every AI agent you already use
…and any MCP-compatible client
Connect NASA Mars — Rover Photos from the Red Planet MCP to OpenAI Agents SDK
Create your Vinkius account to connect NASA Mars — Rover Photos from the Red Planet to OpenAI Agents SDK and route execution through our secure gateway. The platform manages server hosting, runtime updates, and security layers. Configuration requires no manual server provisioning.
Auto-discover Mars Rover Tools
Your agent finds all four NASA tools the moment it connects. No manual mapping, no boilerplate. It immediately knows how to use `get_mars_latest` for recent Curiosity images and `get_mars_photos` to dig through the archives of Spirit and Opportunity. This means you can ask your agent to 'find photos from Curiosity's Mastcam on sol 1000' and it just works. The MCP server handles the connection to NASA's API; your agent just focuses on the task.
Guardrails for NASA API Rate Limits
NASA has API rate limits. Instead of writing complex retry logic, you use the OpenAI Agents SDK guardrails to control your agent's behavior. You can set rules to prevent it from spamming `get_mars_photos_by_date` in a tight loop. This is critical for building a reliable product. Your agent can explore the 800,000+ photos without getting your API key blocked, and OpenAI's dashboard gives you full tracing on every tool call made through the MCP Server.
Build Specialized Mars Data Agents
This MCP Server exposes tools like `get_mars_manifest` so you can create one agent that's an expert at parsing mission data. Then create another that specializes in finding visually interesting images using `get_mars_photos` with different camera filters. The SDK lets you hand off tasks between them. An agent can find the valid sol range for the Opportunity rover, then pass that range to another agent to download a specific set of Hazard Camera (HAZCAM) images.
Set up NASA Mars — Rover Photos from the Red Planet MCP in OpenAI Agents SDK
Prerequisites
- Python 3.10+ installed
-
openai-agentspackage (pip install openai-agents) - Active Vinkius subscription with a valid endpoint token
- 1
Install the SDK
Run
pip install openai-agentsto install the OpenAI Agents SDK. The MCP integration is built-in — no extra dependencies needed. - 2
Connect via SSE transport
Use
MCPServerSsewith your Vinkius endpoint URL. Replace[YOUR_TOKEN_HERE]with your token from cloud.vinkius.com. The SDK auto-discovers all NASA Mars — Rover Photos from the Red Planet tools at runtime. - 3
Create your Agent
Pass the MCP to
Agent(mcp_servers=[server]). The agent receives NASA Mars — Rover Photos from the Red Planet tools as native definitions — JSON schemas resolve automatically. - 4
Run the agent
Call
Runner.run(agent, prompt)to execute. The agent invokes the appropriate NASA Mars — Rover Photos from the Red Planet tools and returns structured results. Copy the full example on the right to get started.
import asyncio
from agents import Agent, Runner
from agents.mcp import MCPServerSse
async def main():
async with MCPServerSse(
url="https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp"
) as server:
agent = Agent(
name="NASA Mars — Rover Photos from the Red Planet Agent",
instructions="You have access to NASA Mars — Rover Photos from the Red Planet tools.",
mcp_servers=[server],
)
result = await Runner.run(agent, "List recent transactions")
print(result.final_output)
asyncio.run(main()) Independent Platform Disclaimer: Vinkius is an independent platform and is not affiliated with, endorsed by, sponsored by, verified by, or otherwise authorized by NASA. All third-party trademarks, logos, and brand names are the property of their respective owners. Their use on this website is strictly for informational purposes to identify service compatibility and interoperability.
Why Choose Vinkius
Vinkius connects your tools to AI with real-time monitoring and automatic cost savings — all from one dashboard.
Real-time monitoring
Live
visibility into every interaction
Connect your favorite tools to your AI and see exactly what's happening — every request, every response, in real time.
Built-in savings
60%
lower AI costs
Vinkius compresses data between your apps and your AI automatically. Lower bills every month — no configuration required.
Single dashboard
One
place for every integration
Every tool your AI connects to, managed from a single screen. One account, complete control.
Common questions about NASA Mars — Rover Photos from the Red Planet MCP in OpenAI Agents SDK
Use it with your favorite AI tools
Connect this server to Cursor, Claude, VS Code, and more.
Start using the NASA Mars — Rover Photos from the Red Planet MCP today
We host it, we monitor it, we maintain it. You just paste one token.