Skip to main content
Glama
MaxwellCalkin

N2YO Satellite Tracker MCP Server

get_recent_launches

Retrieve a list of satellites launched in the past 30 days using N2YO Satellite Tracker MCP Server, enabling efficient tracking of recent space missions and orbital deployments.

Instructions

Get satellites launched in the last 30 days

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Handler function that executes the get_recent_launches tool by calling the N2YO client and formatting the response as CallToolResult.
    private async getRecentLaunches(): Promise<CallToolResult> { const launches = await this.n2yoClient.getRecentLaunches(); return { content: [ { type: "text", text: JSON.stringify({ timeRange: "Last 30 days", recentLaunches: launches, count: launches.length, note: "Recently launched satellites with current position data" }, null, 2), }, ], }; }
  • src/server.ts:277-283 (registration)
    Tool registration in the getTools() method, including name, description, and empty input schema (no parameters required).
    name: "get_recent_launches", description: "Get satellites launched in the last 30 days", inputSchema: { type: "object", properties: {}, }, },
  • Supporting method in N2YO client that fetches recent launches from the last 30 days via API request.
    async getRecentLaunches(): Promise<RecentLaunch[]> { const now = new Date(); const thirtyDaysAgo = new Date(now.getTime() - 30 * 24 * 60 * 60 * 1000); const startDate = thirtyDaysAgo.toISOString().split('T')[0]; const endDate = now.toISOString().split('T')[0]; const response = await this.makeRequest(`/launchDate/${startDate}/${endDate}`, { startDate, endDate, }); return response.above || []; }
  • Input schema for the tool: empty object (no input parameters required).
    inputSchema: { type: "object", properties: {}, },
  • src/server.ts:462-463 (registration)
    Dispatch case in callTool switch statement that routes to the handler.
    case "get_recent_launches": return await this.getRecentLaunches();

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/MaxwellCalkin/N2YO-MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server