get_ayah
Pack: quran · Connect: https://pipeworx.io/mcp (see Connect below for a single-pack URL)
No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/get_ayah for the schema, then POST the same URL with its arguments for the data.
Get a single ayah (verse) of the Quran by reference — either surah:ayah (e.g. “2:255” for Ayat al-Kursi) or a global ayah number (1-6236). Returns the verse text in the chosen edition (translation like en.asad / en.sahih, or Arabic via quran-uthmani).
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
reference | string | yes | Verse reference: “surah:ayah” like “2:255”, or a global ayah number like “262”. |
edition | string | no | Edition identifier. Default ‘en.asad’. Use ‘quran-uthmani’ for Arabic. |
Example call
Arguments
{
"reference": "2:255"
}
curl
curl -X POST https://gateway.pipeworx.io/quran/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_ayah","arguments":{"reference":"2:255"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('get_ayah', {
"reference": "2:255"
});
More examples
{
"reference": "262",
"edition": "en.sahih"
}
Connect
Add this to your MCP client config — every tool in the catalog, including this one — or use one-click install buttons:
{
"mcpServers": {
"pipeworx": {
"url": "https://pipeworx.io/mcp"
}
}
}
Connect to just the quran pack
{
"mcpServers": {
"quran": {
"url": "https://gateway.pipeworx.io/quran/mcp"
}
}
}
See Getting Started for client-specific install steps.