Who's in Space

Who's in Space

Provides AI assistants with live information about who is currently in space and the location of the ISS, using the free Open Notify API.

Category
访问服务器

README

Who's in Space? — MCP server

A tiny Model Context Protocol server that lets an AI assistant answer "who is in space right now?" and "where is the ISS?" using the free, no-API-key Open Notify service.

Great as a first MCP demo: two live tools, zero credentials, always-changing data. It also ships a live web map of both crewed space stations (see below).

🌐 Live map (GitHub Pages): https://andresapitt.github.io/ceai-mcp-iss/

Live map of the ISS and Tiangong with crew tooltip

Tools

Tool Arguments Returns
whos_in_space none People currently in orbit, grouped by spacecraft
iss_location none Live latitude/longitude of the ISS + a map link
space_briefing none A composed summary (people + ISS position) from both sources — the "customer briefing" pattern

Setup

npm install
npm run build

Visual demo: the live ISS map 🗺️

A web page that plots both crewed space stations — the ISS and China's Tiangong (CSS) — on a world map. Hover a marker to see who's on board. Each station has a coloured fading trail and the positions update every second.

npm run web
# then open http://localhost:3000

How it works:

  • web/server.mjs serves the page and proxies two free, no-key sources server-side (so the browser never hits a CORS wall): Open Notify (/api/astros — who is on each craft) and CelesTrak (/api/tle?id=… — each station's orbital elements, cached for an hour).
  • The browser computes each station's live ground position from its orbital elements using satellite.js, so the markers move smoothly every second without polling any API.
  • Map is Leaflet + OpenStreetMap. All libraries load from a CDN; everything is free and key-less. Set a different port with PORT=8080 npm run web.

Host the map on GitHub Pages

GitHub Pages only serves static files over HTTPS — it can't run the Node proxy in web/server.mjs. So a static build lives in docs/ that talks to the data sources directly:

  • Positions are fetched straight from CelesTrak (HTTPS + open CORS), so the map stays fully live.
  • Crew comes from a committed snapshot, docs/crew.json, because Open Notify is HTTP-only and a browser on an HTTPS page blocks it as "mixed content". Crew changes only every few months.

Enable it (one time): repo Settings → Pages → Build and deployment → Source: Deploy from a branch → Branch: main, folder: /docs → Save. After a minute the site is live at https://andresapitt.github.io/ceai-mcp-iss/.

To refresh the crew snapshot (e.g. after a crew rotation):

curl -s http://api.open-notify.org/astros.json -o docs/crew.json
git commit -am "Update crew snapshot" && git push

The MCP server itself cannot run on Pages — it's a stdio process an AI client launches, not a web page. Pages hosts only the visual map.

Run the demo (see the MCP tools working)

There are two ways to run it.

Option A — In your terminal (fastest, no external app)

npm run demo

This launches the server, discovers the tools, calls each one, and prints the live results. Uses the small MCP client in demo.mjs. Great for a quick "it works" check or a screen-share where you narrate each tool call.

(npm start is also available — it starts the server on stdio and waits for raw JSON-RPC on stdin, for manual testing.)

Option B — In Claude Desktop (the real demo)

This is the version to present — you ask Claude a question and it calls your tool. See the next section for setup, then ask:

  • "Who's in space right now?"
  • "Where is the ISS?"
  • "Give me a space briefing"

Claude shows a "used tool" indicator and answers from the live data.

Presenting tips

  • Run a query twice — the ISS coordinates change every time, proving it's a real live tool and not the model guessing.
  • Keep a terminal with npm run demo open as a backup in case Claude Desktop is slow to reconnect.

Use it in Claude Desktop

Add this to your claude_desktop_config.json (Windows: %APPDATA%\Claude\claude_desktop_config.json):

{
  "mcpServers": {
    "whos-in-space": {
      "command": "node",
      "args": [
        "C:\\Users\\andre\\OneDrive - vStream\\Documents\\Andrés\\courses\\AI in Business\\Customer Engagement and AI\\projects\\mcp\\dist\\index.js"
      ]
    }
  }
}

Steps:

  1. Edit the config file above (on Windows, run notepad "$env:APPDATA\Claude\claude_desktop_config.json" in PowerShell). Merge the whos-in-space entry into any existing mcpServers — don't delete what's already there.
  2. Fully quit Claude Desktop (File → Exit, not just closing the window) and reopen it, so it restarts the background process.
  3. Click the tools/plug icon in the chat box — you should see whos-in-space with 3 tools.
  4. Ask "Who's in space right now?"

If the tools don't appear: recheck the path (double backslashes \\) and make sure npm run build has been run so dist\index.js exists.

Alternative: launch with npx (no dist path to hardcode)

After npm run build, you can let the client run the package by folder instead of pointing at dist/index.js:

{
  "mcpServers": {
    "whos-in-space": {
      "command": "npx",
      "args": [
        "C:\\Users\\andre\\OneDrive - vStream\\Documents\\Andrés\\courses\\AI in Business\\Customer Engagement and AI\\projects\\mcp"
      ]
    }
  }
}

npx <folder> resolves the bin entry in package.json and runs it.

How it works

  • src/index.ts creates an McpServer, registers two tools, and speaks the MCP protocol over stdio (stdout = protocol, stderr = logs).
  • Each tool does a single fetch to Open Notify and formats the result as text.
  • No API key, no auth, no rate-limit signup.

License

MIT © 2026 Andrés Apitt

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选