Skip to main content
The server runs on your machine as a Docker container that your MCP client starts on demand. You don’t run it yourself or keep it running: you add one entry to your client’s MCP config, and the client launches the container when a session starts and stops it when the session ends.

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.
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:
Every client below runs the same command:
Don’t add -t. A TTY corrupts the JSON-RPC stream and the client will fail to connect.

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.
Restart Claude Code, then run /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

  1. Install uv. The bundle uses it to fetch Python and the dependencies on first launch.
  2. Download psxdata-mcp-<version>.mcpb from the latest release.
  3. Open the file, or drag it into Settings → Extensions, and confirm the install.
The first launch takes a few seconds longer than later ones while uv sets up the environment. If Claude Desktop reports that uv is missing, install it and restart Claude Desktop.
The skills show up as prompts in the + menu of the message box.

Cursor

Install with one click: Add the psxdata MCP server to CursorAdd the psxdata MCP server to Cursor Or add it by hand to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (one project):
mcp.json
Check Cursor Settings → MCP for a green status next to 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
To make it available in every workspace, run MCP: Open User Configuration from the Command Palette and add the same entry there. Open Copilot Chat in Agent mode and check the tools picker for the psxdata tools. The skills are available as /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
Refresh the MCP server list in Cascade.

OpenAI Codex

Add it from the command line:
Or add it to ~/.codex/config.toml by hand:
~/.codex/config.toml
The Codex CLI and the Codex IDE extension share this file. Run /mcp in the CLI to confirm the server is listed.

Gemini CLI

Add it from the command line:
The -- 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
Run /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)
If the client takes a JSON config with an 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%?”
You should see the assistant call 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:
If you pinned a version, change the tag in your client config. To update the Claude Code plugin, refresh the marketplace and then the plugin:
To update the Claude Desktop bundle, install the newer .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):
It opens a browser UI where you can list the tools, call load_screener, then run query with SELECT * FROM screener LIMIT 5.

Troubleshooting

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.
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 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 throttles bursts of requests. Wait a minute and ask again. Loading fewer symbols per call helps.
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.
Remove the volume and the next session rebuilds it: