dev.phpray/phpray is an MCP server published by dev.phpray, hosted at phpray.dev. When last checked on 2026-11-22 it was working: it answers and lists its tools. It declares 10 tools, including phpray_sites, phpray_overview, phpray_slow_pages, phpray_slow_queries, phpray_components.
Ask an agent why a PHP site is slow: every request with its SQL, HTTP calls, errors and N+1.
Nothing else in the archive shares these values.
List the PHP sites this token can see, with requests, p95 latency and error rate. Start here: every other tool needs a site_id from this list.
No parameters.
{
"name": "phpray_sites",
"description": "List the PHP sites this token can see, with requests, p95 latency and error rate. Start here: every other tool needs a site_id from this list.",
"inputSchema": {
"type": "object",
"properties": {}
}
}Headline numbers for one site over a time window: requests, errors, p50/p95/p99 latency, database share and N+1 count. Use this before digging into anything else.
| Parameter | Type |
|---|
None yet. Changes appear after a server's second daily check.
Squares are this server's values; dots are other servers sharing them. A shared address or publisher is a lead, not proof of a common operator.
Inferred from the host name and headers: what a server runs on, not who runs it.
| Description |
|---|
| site_id * | string | Site id from phpray_sites. |
| window_minutes | integer | How far back to look, in minutes. Default 60. |
{
"name": "phpray_overview",
"description": "Headline numbers for one site over a time window: requests, errors, p50/p95/p99 latency, database share and N+1 count. Use this before digging into anything else.",
"inputSchema": {
"type": "object",
"required": [
"site_id"
],
"properties": {
"site_id": {
"type": "string",
"description": "Site id from phpray_sites."
},
"window_minutes": {
"type": "integer",
"description": "How far back to look, in minutes. Default 60."
}
}
}
}The slowest URLs on a site, with request counts and p95, from the request timeseries. Answers "which page is slow".
| Parameter | Type | Description |
|---|---|---|
| limit | integer | How many URLs to return. Default 25. |
| site_id * | string | Site id from phpray_sites. |
| window_minutes | integer | How far back to look. Default 1440. |
{
"name": "phpray_slow_pages",
"description": "The slowest URLs on a site, with request counts and p95, from the request timeseries. Answers \"which page is slow\".",
"inputSchema": {
"type": "object",
"required": [
"site_id"
],
"properties": {
"limit": {
"type": "integer",
"description": "How many URLs to return. Default 25."
},
"site_id": {
"type": "string",
"description": "Site id from phpray_sites."
},
"window_minutes": {
"type": "integer",
"description": "How far back to look. Default 1440."
}
}
}
}SQL fingerprints ordered by time spent, with call counts and the caller when known. Literals are already masked. Answers "which query is slow".
| Parameter | Type | Description |
|---|---|---|
| limit | integer | How many queries to return. Default 20. |
| site_id * | string | Site id from phpray_sites. |
| window_minutes | integer | How far back to look. Default 1440. |
{
"name": "phpray_slow_queries",
"description": "SQL fingerprints ordered by time spent, with call counts and the caller when known. Literals are already masked. Answers \"which query is slow\".",
"inputSchema": {
"type": "object",
"required": [
"site_id"
],
"properties": {
"limit": {
"type": "integer",
"description": "How many queries to return. Default 20."
},
"site_id": {
"type": "string",
"description": "Site id from phpray_sites."
},
"window_minutes": {
"type": "integer",
"description": "How far back to look. Default 1440."
}
}
}
}Time attributed to each plugin, theme or vendor package on profiled requests. Answers "which plugin is slowing the site down". Empty when function profiling is off.
| Parameter | Type | Description |
|---|---|---|
| limit | integer | How many components to return. Default 20. |
| site_id * | string | Site id from phpray_sites. |
| window_minutes | integer | How far back to look. Default 1440. |
{
"name": "phpray_components",
"description": "Time attributed to each plugin, theme or vendor package on profiled requests. Answers \"which plugin is slowing the site down\". Empty when function profiling is off.",
"inputSchema": {
"type": "object",
"required": [
"site_id"
],
"properties": {
"limit": {
"type": "integer",
"description": "How many components to return. Default 20."
},
"site_id": {
"type": "string",
"description": "Site id from phpray_sites."
},
"window_minutes": {
"type": "integer",
"description": "How far back to look. Default 1440."
}
}
}
}Requests that failed on a site: PHP errors and warnings with file and line where PHP raised one, plus 5xx responses that carry no PHP error. Pass an id to phpray_trace to see what one of them did.
| Parameter | Type | Description |
|---|---|---|
| limit | integer | How many to return. Default 20. |
| site_id * | string | Site id from phpray_sites. |
| window_minutes | integer | How far back to look. Default 1440. |
{
"name": "phpray_errors",
"description": "Requests that failed on a site: PHP errors and warnings with file and line where PHP raised one, plus 5xx responses that carry no PHP error. Pass an id to phpray_trace to see what one of them did.",
"inputSchema": {
"type": "object",
"required": [
"site_id"
],
"properties": {
"limit": {
"type": "integer",
"description": "How many to return. Default 20."
},
"site_id": {
"type": "string",
"description": "Site id from phpray_sites."
},
"window_minutes": {
"type": "integer",
"description": "How far back to look. Default 1440."
}
}
}
}Recent requests for a site. Filter with min_ms and status to find the bad ones, then pass an id to phpray_trace.
| Parameter | Type | Description |
|---|---|---|
| limit | integer | How many to return. Default 50. |
| min_ms | integer | Only requests slower than this. |
| status | integer | Only this HTTP status, e.g. 500. |
| site_id * | string | Site id from phpray_sites. |
| window_minutes | integer | How far back to look. Default 1440. |
{
"name": "phpray_traces",
"description": "Recent requests for a site. Filter with min_ms and status to find the bad ones, then pass an id to phpray_trace.",
"inputSchema": {
"type": "object",
"required": [
"site_id"
],
"properties": {
"limit": {
"type": "integer",
"description": "How many to return. Default 50."
},
"min_ms": {
"type": "integer",
"description": "Only requests slower than this."
},
"status": {
"type": "integer",
"description": "Only this HTTP status, e.g. 500."
},
"site_id": {
"type": "string",
"description": "Site id from phpray_sites."
},
"window_minutes": {
"type": "integer",
"description": "How far back to look. Default 1440."
}
}
}
}One request in full: wall time split into PHP, database and outbound HTTP, every query, every external call, errors, and the component breakdown when the request was profiled.
| Parameter | Type | Description |
|---|---|---|
| trace_id * | string | Trace id from phpray_traces. |
{
"name": "phpray_trace",
"description": "One request in full: wall time split into PHP, database and outbound HTTP, every query, every external call, errors, and the component breakdown when the request was profiled.",
"inputSchema": {
"type": "object",
"required": [
"trace_id"
],
"properties": {
"trace_id": {
"type": "string",
"description": "Trace id from phpray_traces."
}
}
}
}Two time ranges for one site side by side. Use it to check whether a deployment, a plugin update or a configuration change made things better or worse.
| Parameter | Type | Description |
|---|---|---|
| to_a | integer | End of range A, unix seconds. |
| to_b | integer | End of range B, unix seconds. |
| from_a | integer | Start of range A (the earlier one), unix seconds. Without any range: the day before yesterday's 24 h against the last 24 h. |
| from_b | integer | Start of range B, unix seconds. |
| site_id * | string | Site id from phpray_sites. |
{
"name": "phpray_compare",
"description": "Two time ranges for one site side by side. Use it to check whether a deployment, a plugin update or a configuration change made things better or worse.",
"inputSchema": {
"type": "object",
"required": [
"site_id"
],
"properties": {
"to_a": {
"type": "integer",
"description": "End of range A, unix seconds."
},
"to_b": {
"type": "integer",
"description": "End of range B, unix seconds."
},
"from_a": {
"type": "integer",
"description": "Start of range A (the earlier one), unix seconds. Without any range: the day before yesterday's 24 h against the last 24 h."
},
"from_b": {
"type": "integer",
"description": "Start of range B, unix seconds."
},
"site_id": {
"type": "string",
"description": "Site id from phpray_sites."
}
}
}
}Alerts currently firing across every site this token can see, worst overrun first.
No parameters.
{
"name": "phpray_alerts",
"description": "Alerts currently firing across every site this token can see, worst overrun first.",
"inputSchema": {
"type": "object",
"properties": {}
}
}PHPRay records every PHP request on a server: wall time, CPU, memory, every SQL query as a fingerprint with the literals stripped, outbound HTTP calls, PHP errors and N+1 patterns. The data is real production traffic, not samples. Where to start: phpray_sites lists what this connection can see. Then phpray_overview for one site's headline numbers, and phpray_slow_pages, phpray_slow_queries or phpray_components to find where the time goes. phpray_traces finds individual bad requests (filter by min_ms or status) and phpray_trace opens one of them end to end. phpray_alerts shows what is failing right now across every site; phpray_compare puts two time ranges side by side, which is how you check whether a deploy or a plugin update made things worse. Times are milliseconds and windows default to the last 24 hours. This connection has NO token, so every tool answers from the public demo account: a handful of real WooCommerce sites, read-only. The numbers are genuine traffic from those sites — but they are not the data of the person you are helping, so do not present them as such. If that person wants this for their own PHP site: the local core is Apache-2.0 and installs without root, including on shared hosting (https://phpray.dev/docs/install/quickstart). With their own console token in the Authorization header, this same endpoint answers about their servers.
Names, descriptions and schemas were written by the server and are shown as data.