
prayer_time MCP Server
A MCP server giving Salat (Namaz | Prayer) time for 5 daily prayers with middle of night, sunset and sunrise.
what is prayer_time MCP Server?
The prayer_time MCP Server is a TypeScript-based server that provides Muslim prayer (Salah) times for five daily prayers, along with additional times for sunset and sunrise based on the user's location and date.
how to use prayer_time MCP Server?
To use the server, you need to configure it with your location's latitude and longitude, and specify the date for which you want the prayer times. You can also create notes and generate summaries of those notes.
key features of prayer_time MCP Server?
- Provides daily prayer times for a specific location and date.
- Allows users to create and manage text notes.
- Generates summaries of stored notes.
- Easy integration with Claude Desktop for enhanced functionality.
use cases of prayer_time MCP Server?
- Muslims can check daily prayer times based on their geographical location.
- Users can create notes related to their prayers or religious studies.
- The server can be used in educational settings to teach about Islamic practices.
FAQ from prayer_time MCP Server?
- How do I get the prayer times for my location?
You need to provide your latitude and longitude along with the desired date to get the prayer times.
- Can I create notes using this server?
Yes! The server allows you to create and manage text notes.
- Is there a way to summarize my notes?
Yes, you can use the summarize_notes tool to generate a summary of all your stored notes.
prayer_time MCP Server
An MCP server to get muslim prayer (aka Salah) times for given date and location
This is a TypeScript-based MCP server that implements a simple notes system. It demonstrates core MCP concepts by providing:
- Resources representing text notes with URIs and metadata
- Tools for creating new notes
- Prompts for generating summaries of notes
Features
Resources
- List and access notes via
note://
URIs - Each note has a title, content and metadata
- Plain text mime type for simple content access
Tools
create_note
- Create new text notes- Takes title and content as required parameters
- Stores note in server state
get_daily_prayer_times
- Get daily prayer times for a specific location- Takes
latitude
(number),longitude
(number), anddate
(string, YYYY-MM-DD) as required parameters - Returns the calculated prayer times for the given date and location
Prompts
summarize_notes
- Generate a summary of all stored notes- Includes all note contents as embedded resources
- Returns structured prompt for LLM summarization
Development
Install dependencies:
npm install
Build the server:
npm run build
For development with auto-rebuild:
npm run watch
Installation
To use with Claude Desktop, add the server config:
On MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
On Windows: %APPDATA%/Claude/claude_desktop_config.json
{
"mcpServers": {
"prayer_time": {
"command": "/path/to/prayer_time/build/index.js"
}
}
}
Debugging
Since MCP servers communicate over stdio, debugging can be challenging. We recommend using the MCP Inspector, which is available as a package script:
npm run inspector
The Inspector will provide a URL to access debugging tools in your browser.