get_surah
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_surah for the schema, then POST the same URL with its arguments for the data.
Get the full text of a surah (chapter) of the Quran by its number (1-114). Returns every ayah (verse) in the chosen edition. Use an English translation edition (e.g. en.asad, en.sahih) for English, or quran-uthmani for the Arabic text.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
number | number | yes | Surah number, 1-114. |
edition | string | no | Edition identifier. Default ‘en.asad’ (English translation). Other examples: ‘en.sahih’ (English), ‘quran-uthmani’ (Arabic). |
Example call
Arguments
{
"number": 1
}
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_surah","arguments":{"number":1}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('get_surah', {
"number": 1
});
More examples
{
"number": 2,
"edition": "quran-uthmani"
}
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.