this is the mcp server for sitespeed.
409
๐ง Sitespeed MCP Server
Docker Image: myanees/sitespeed-mcp-server:latest Base Image: sitespeedio/sitespeed.io:38.3.0
Language: Python 3 + FastMCP
๐งฑ Architecture
๐ Sitespeed.io (Node.js) โ ๐ Python FastMCP Layer โ ๐ค MCP Client (Claude Desktop / VS Code / Custom Agent)
๐ Overview
The Sitespeed MCP Server provides an AI-accessible layer on top of Sitespeed.io , enabling performance testing, analysis, and insights via MCP-compatible clients (like Claude Desktop, VS Code MCP, or custom REST clients).
It exposes multiple tools (via FastMCP):
| Tool Name | Description |
|---|---|
run_sitespeed | Run a Sitespeed test on a given URL |
read_sitespeed_data | Parse Sitespeed JSON results for a run |
analyze_trace | Extract long tasks from Chrome trace |
analyze_network | Summarize network requests and domains |
analyze_rendering | Identify layout and paint events |
analyze_memory | Detect GC/memory pressure events |
This allows seamless integration with LLMs and developer agents for automated web performance analysis.
docker run -it --rm
-v $(pwd)/sitespeed-results:/app/sitespeed-results
myanees/sitespeed-mcp-server:0.3
This launches the MCP server in stdio mode, ready to connect from clients like:
๐งฉ Claude Desktop (docker-mcp integration)
๐ง VS Code MCP client
๐งฐ Custom scripts using the FastMCP SDK
๐งช Example MCP Tool Usage
| Action | Description |
|---|---|
run_sitespeed("https://www.emirates.com") | Runs a performance test |
read_sitespeed_data("run-20251011-123000") | Reads stored JSON results |
analyze_trace("run-20251011-123000") | Extracts long tasks |
analyze_network("run-20251011-123000") | Summarizes network requests |
๐ง Environment Variables
| Variable | Default | Description |
|---|---|---|
SITESPEED_OUTPUT | /app/sitespeed-results | Output directory for results |
๐ Claude Desktop Integration
Add the following snippet to your claude_desktop_config.json (or .claude/config.json):
{ "mcpServers": { "sitespeed-mcp-server": { "type": "stdio", "command": "/usr/local/bin/docker", "args": [ "run", "-i", "--rm", "-v", "${workspaceFolder}/sitespeed-results:/app/sitespeed-results", "myanees/sitespeed-mcp-server:0.3" ], "env": {} } } }
docker pull myanees/sitespeed-mcp-server:0.4