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.
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
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"
}
}
}