# Phpray

> Phpray is a freemium MCP server for developer tools. Let agents read production PHP request traces, slow SQL and errors from PHPRay. It runs as a hosted remote server, so there is nothing to install locally.

- **Kind:** MCP server
- **Pricing:** Freemium
- **Platforms:** API, Web, self-hosted
- **Website:** https://phpray.dev/mcp-server/
- **Repository:** https://github.com/stephen1137/phpray
- **MCP Registry name:** dev.phpray/phpray
- **Categories:** developer tools, analytics and data
- **Listing updated:** 2026-11-16

## About

PHPRay records every PHP request, not a sample, with wall time, CPU, memory, SQL, outbound HTTP, errors and N+1 patterns, and breaks some requests down by plugin. This hosted server puts that data in reach of an agent so a question like which page slowed down after a deploy is answered from real requests instead of guesses about source code.

Without a token it serves a read-only demo account of a WooCommerce store, limited to 30 requests a minute per address, so you can see real output before signing up. With a console token it sees your own sites, scoped to what the token can read. The token travels per request and is not stored by the MCP service, and a read-only token cannot start profiling.

The transport is Streamable HTTP over POST only, and SQL literals are masked before data leaves the site. The local PHPRay core is Apache-2.0; the hosted console is priced by the number of sites.

## Features

- **Demo with no sign-up:** An unauthenticated connection reads a demo WooCommerce account.
- **Slow pages and queries:** Rank URLs by p95 and SQL fingerprints by total time.
- **Site overview:** Requests, errors, p50/p95/p99 latency, database share and N+1 count for a window.
- **Plugin attribution:** Find which plugin consumes the most time on profiled requests.
- **Before and after compare:** Compare time windows to spot regressions after a deploy.
- **Masked SQL:** Literal values in queries are replaced with placeholders before leaving the site.

## Good for

- Find the slowest pages on a WordPress or WooCommerce site
- Identify the most expensive SQL fingerprint and its callers
- Check whether a deploy made latency worse
- Attribute slowness to a specific plugin

## Install

### Claude Code (Terminal)

```sh
claude mcp add --transport http phpray https://phpray.dev/mcp
```

### Claude Desktop (Settings → Connectors → Add custom connector)

```sh
https://phpray.dev/mcp
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "phpray": {
      "url": "https://phpray.dev/mcp"
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "phpray": {
      "type": "http",
      "url": "https://phpray.dev/mcp"
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "phpray": {
      "serverUrl": "https://phpray.dev/mcp"
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "phpray": {
      "type": "http",
      "url": "https://phpray.dev/mcp"
    }
  }
}
```

## Tools

- `phpray_sites`: List the PHP sites a token can see with requests, p95 latency and error rate
- `phpray_overview`: Headline numbers for one site over a time window
- `phpray_slow_pages`: Slowest URLs on a site with request counts and p95
- `phpray_slow_queries`: SQL fingerprints ordered by time spent

## FAQ

### Do I need an account to try it?

No. Without a token you get a read-only demo account.

### What are the demo limits?

30 requests a minute per address.

### How many tools are there?

The site says ten read-only tools.

### How is it priced?

The local core is free; the hosted console has a free tier of one site and paid plans by site count.

### Is Phpray free?

Phpray has a free plan, with paid plans for more usage or features.

### How do I add Phpray to Claude Code?

Run this command in your terminal: claude mcp add --transport http phpray https://phpray.dev/mcp

### What are the best alternatives to Phpray?

The closest alternatives to Phpray are REA, Codebase Memory, GitHub, Serena MCP: the IDE for your agent and XERJ.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [GitHub](https://ai-powered.com/mcp/github-2): GitHub is an open-source MCP server for developer tools.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.
- [Agent-Native Analytics](https://ai-powered.com/mcp/agent-native-analytics): Agent-Native Analytics is an open-source MCP server for analytics and data.
- [Ouroboros](https://ai-powered.com/mcp/ouroboros): Ouroboros is an open-source MCP server for developer tools.
- [Claude Code Ultimate Guide](https://ai-powered.com/mcp/claude-code-ultimate-guide): Claude Code Ultimate Guide is an open-source MCP server for ai models and llm tooling.

---
Source: https://ai-powered.com/mcp/phpray
