Let your agent set it up
Pick your agent, then copy the prompt into it, or open it there directly, and the agent does the setup for you. Use the eye icon to read exactly what it will do. The rest of this page is the same setup by hand.- Claude Code
- Codex
- Cursor
- Other agents
The link opens Claude Code in a new terminal. It works once you’ve used Claude Code at least once on your device.
Before you start
1
Install Docker
Install Docker Desktop (macOS, Windows) or Docker Engine (Linux), and make sure it’s running:If you’re setting up Claude Desktop and don’t want Docker, skip to the one-click bundle, which uses uv instead.
2
Pull the image
Optional, but it means the first session doesn’t wait for the download:
Connect your client
Claude Code
The plugin is the recommended route. It adds the server and the skills, which Claude loads on its own when a request matches./mcp to check that psxdata is connected. The plugin pins the image version that matches the plugin release.
To add only the server, without the skills:
--scope user makes it available in every project. Use --scope project instead to write it to .mcp.json in the current repository, so everyone who clones it gets the server. Without the plugin, the skills are still available as prompts, for example /mcp__psxdata__tearsheet OGDC.
Claude Desktop
- One-click bundle (no Docker)
- Docker
- Install uv. The bundle uses it to fetch Python and the dependencies on first launch.
- Download
psxdata-mcp-<version>.mcpbfrom the latest release. - Open the file, or drag it into Settings → Extensions, and confirm the install.
Cursor
Install with one click:~/.cursor/mcp.json (all projects) or .cursor/mcp.json (one project):
mcp.json
psxdata, then ask in Agent mode.
VS Code (GitHub Copilot)
Install psxdata in VS Code with one click, or add it to.vscode/mcp.json in your workspace. Note that VS Code uses servers, not mcpServers:
.vscode/mcp.json
/mcp.psxdata.<skill> prompts in chat.
Windsurf
Open Windsurf Settings → Cascade → MCP Servers → View raw config, which opens~/.codeium/windsurf/mcp_config.json, and add:
mcp_config.json
OpenAI Codex
Add it from the command line:~/.codex/config.toml by hand:
~/.codex/config.toml
/mcp in the CLI to confirm the server is listed.
Gemini CLI
Add it from the command line:-- stops Gemini CLI from reading Docker’s -i flag as its own. Drop --scope user to add the server to the current project only. Or add it to ~/.gemini/settings.json (all projects) or .gemini/settings.json (one project):
settings.json
/mcp inside Gemini CLI to see the server and its tools.
Any other client
Most MCP clients (Cline, Roo Code, Zed, Continue, LM Studio, Goose and others) accept a stdio server defined by a command and its arguments. Use:- Command:
docker - Arguments:
run -i --rm -v psxdata-cache:/home/app/.psxdata mtauha/psxdata-mcp:latest - Transport: stdio (no URL, no port, no environment variables, no API key)
mcpServers key, the Claude Desktop entry above works as is.
Try it
Start a new chat and ask something that needs PSX data:- “Load the KSE-100 constituents and show me the ten biggest weights.”
- “Compare OGDC, PPL and MARI over the last year.”
- “Which banks have a P/E under 5 and a dividend yield over 10%?”
load_index, load_prices or load_screener, then query. If it answers from memory instead, mention psxdata by name (“use the psxdata tools”) or check that the server is connected.
For a structured report, run one of the skills, for example the tearsheet prompt with OGDC.
Updating
With:latest, pull the new image and start a new session:
.mcpb from the releases page.
Test the server on its own
To check the server without an AI client, open it in the MCP Inspector (needs Node.js):load_screener, then run query with SELECT * FROM screener LIMIT 5.
Troubleshooting
The client says the server failed to start or disconnected
The client says the server failed to start or disconnected
Make sure Docker is running (
docker info), then run the docker run command above in a terminal. It should start and wait silently for input; press Ctrl+C to stop it. If it prints a Docker error instead, fix that first. Also check that the config has no -t flag.docker is not found
docker is not found
GUI apps such as Claude Desktop sometimes don’t see the same
PATH as your terminal. Use the full path to the Docker binary as the command, for example /usr/local/bin/docker on macOS or C:\\Program Files\\Docker\\Docker\\resources\\bin\\docker.exe on Windows (backslashes doubled inside JSON).The first session is slow
The first session is slow
The first run pulls the image, and the first load of each symbol downloads its full price history from PSX. Later sessions reuse the image and the
psxdata-cache volume. Pull the image ahead of time with docker pull mtauha/psxdata-mcp:latest."PSX is rate-limiting requests"
"PSX is rate-limiting requests"
PSX throttles bursts of requests. Wait a minute and ask again. Loading fewer symbols per call helps.
The data I loaded earlier is gone
The data I loaded earlier is gone
Tables live in memory and reset when the session ends. Ask the assistant to load them again; historical prices come from the cache, so this is quick.
Reset the price cache
Reset the price cache
Remove the volume and the next session rebuilds it: