The free Sunrise-Sunset.org API on GitHub: examples, OpenAPI spec, change announcements (releases) and issues. Sunrise, sunset, twilight and moon times, plus an MCP server.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add --transport http sunrise-sunset-times-sunrise-sunset https://sun-times--sunrise-sunset.run.tools~/.codex/config.toml
[mcp_servers.sunrise-sunset-times-sunrise-sunset]
url = "https://sun-times--sunrise-sunset.run.tools"
# codex mcp add sunrise-sunset-times-sunrise-sunset --url https://sun-times--sunrise-sunset.run.tools~/.cursor/mcp.json
{
"mcpServers": {
"sunrise-sunset-times-sunrise-sunset": {
"url": "https://sun-times--sunrise-sunset.run.tools"
}
}
}.vscode/mcp.json
{
"servers": {
"sunrise-sunset-times-sunrise-sunset": {
"type": "http",
"url": "https://sun-times--sunrise-sunset.run.tools"
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"sunrise-sunset-times-sunrise-sunset": {
"httpUrl": "https://sun-times--sunrise-sunset.run.tools"
}
}
}claude_desktop_config.json · Customize › Connectors › Add custom connector
{
"mcpServers": {
"sunrise-sunset-times-sunrise-sunset": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://sun-times--sunrise-sunset.run.tools"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"sunrise-sunset-times-sunrise-sunset": {
"url": "https://sun-times--sunrise-sunset.run.tools"
}
}
}