Sunrise & Sunset Times MCP
This official MCP server allows AI agents to retrieve accurate sunrise, sunset, twilight, golden hour, and moon times for any location on Earth. It provides two tools: get_sun_times for a single day and get_sun_times_range for up to 366 consecutive days. The service is free, requires no API key, and uses Streamable HTTP transport.
Endpoint and access
No sign-in: your client connects and lists tools immediately, with no account or key.
MCP endpoint (Streamable HTTP)
https://api.sunrise-sunset.org/mcpWhat you can do with it
- Find golden hour times for photography planning
- Calculate daylight duration for specific months
- Identify darkest nights for stargazing events
get_sun_timesget_sun_times_range
Connect from your client
Each snippet registers the same endpoint; pick the client you use.
Claude Code
Claude Code configuration
claude mcp add --transport http sunrise-sunset-times-mcp https://api.sunrise-sunset.org/mcpCodex
Codex configuration
codex mcp add sunrise-sunset-times-mcp --url https://api.sunrise-sunset.org/mcpCursor
Cursor configuration
{
"mcpServers": {
"sunrise-sunset-times-mcp": {
"url": "https://api.sunrise-sunset.org/mcp"
}
}
}Cline
Cline configuration
{
"mcpServers": {
"sunrise-sunset-times-mcp": {
"type": "streamableHttp",
"url": "https://api.sunrise-sunset.org/mcp",
"disabled": false
}
}
}VS Code
VS Code configuration
{
"servers": {
"sunrise-sunset-times-mcp": {
"type": "http",
"url": "https://api.sunrise-sunset.org/mcp"
}
}
}Gemini CLI
Gemini CLI configuration
gemini mcp add --transport http sunrise-sunset-times-mcp https://api.sunrise-sunset.org/mcpClaude Desktop
Claude Desktop configuration
{
"mcpServers": {
"sunrise-sunset-times-mcp": {
"url": "https://api.sunrise-sunset.org/mcp"
}
}
}Windsurf
Windsurf configuration
{
"mcpServers": {
"sunrise-sunset-times-mcp": {
"serverUrl": "https://api.sunrise-sunset.org/mcp"
}
}
}Other productivity and knowledge servers
Do you run Sunrise & Sunset Times MCP?
Prove ownership with a DNS record, a well-known file, or your Official MCP Registry entry, and your edits publish immediately. Proofs are re-checked weekly; admins can still hide or remove a listing.