paste-co.de-mcp
by 3ia4
README.md
# paste-co.de-mcp
MCP server + CLI for [paste-co.de](https://paste-co.de) (game cheat source archive / research hub / Offsets / Sources).
It lets an MCP client (OpenCode, Claude Desktop, Claude Code, etc.) search projects, read project code/metadata, list game updates, and download community offsets from paste-co.de.
## What you need
- **Bun** (runtime) — https://bun.sh
- Windows (PowerShell): `powershell -c "irm bun.sh/install.ps1 | iex"`
- macOS: `brew install bun`
- **Google Chrome** installed (the MCP uses a real Chrome session to pass Cloudflare)
- https://www.google.com/chrome/
- **Git** (to clone) — https://git-scm.com/downloads
## Install
```bash
git clone https://github.com/3ia4/paste-co.de-mcp.git
cd paste-co.de-mcp
bun install
```
## Quick test (CLI)
```bash
bun run pcd status
bun run pcd search "fortnite external"
bun run pcd project 3248
bun run pcd games
bun run pcd offsets
```
On first run a Chrome window may open. If Cloudflare shows a challenge, complete it in that window and run the command again. The session is saved so next runs are usually automatic.
## Connect to OpenCode
Edit your OpenCode config:
- Windows: `C:\Users\<you>\.config\opencode\opencode.json`
- macOS/Linux: `~/.config/opencode/opencode.json`
Add this (use your real path to the repo):
```json
{
"mcp": {
"paste-co-de": {
"type": "local",
"command": ["bun", "run", "C:\\Users\\meow\\Desktop\\test\\src\\index.ts"],
"enabled": true
}
}
}
```
If you already have other config, just add the `paste-co-de` entry inside `"mcp"`.
Restart OpenCode after saving.
## Connect to Claude Desktop
Edit:
- Windows: `%APPDATA%\Claude\claude_desktop_config.json`
- macOS: `~/Library/Application Support/Claude/claude_desktop_config.json`
```json
{
"mcpServers": {
"paste-co-de": {
"command": "bun",
"args": ["run", "C:\\absolute\\path\\to\\paste-co.de-mcp\\src\\index.ts"]
}
}
}
```
Quit and reopen Claude Desktop.
## Connect to Claude Code
```bash
claude mcp add --scope user paste-co-de -- bun run /absolute/path/to/paste-co.de-mcp/src/index.ts
```
## Connect to Cursor
Add to `.cursor/mcp.json` (project) or `~/.cursor/mcp.json` (global):
```json
{
"mcpServers": {
"paste-co-de": {
"command": "bun",
"args": ["run", "/absolute/path/to/paste-co.de-mcp/src/index.ts"]
}
}
}
```
## How to use it
After connecting, just ask your AI naturally:
- `search paste-co.de for fortnite external`
- `get paste-co.de project 3255 and show the code`
- `list paste-co.de game updates`
- `show community offsets on paste-co.de`
- `download offset id 4 from paste-co.de`
The MCP tools it exposes: `check_status`, `search_projects`, `get_project`, `get_project_code`, `list_games`, `list_offsets`, `download_offset`, `list_guides`, `get_guide`.
## CLI commands
```bash
bun run pcd tools # list tools
bun run pcd status # check CF/session
bun run pcd search "minecraft" # search projects
bun run pcd project 3255 # fetch project metadata + code
bun run pcd code 3255 # fetch only code
bun run pcd games # list game updates
bun run pcd offsets # list community offsets
bun run pcd offset 4 # download offset file by id
bun run pcd guides # list guides
bun run pcd guide /guides/some-guide # fetch a guide
```
## Config (optional)
| Variable | Default | Purpose |
| --- | --- | --- |
| `PCD_CHROME_PATH` | auto-detect | Path to Chrome/Chromium executable |
| `PCD_PROFILE_DIR` | OS app-data dir | Persistent Chrome profile directory |
| `PCD_HEADLESS` | `0` | Set to `1` to force headless mode |
| `PCD_CF_WAIT_MS` | `45000` | Max wait for Cloudflare challenge (ms) |
## Troubleshooting
- **Cloudflare challenge**: run `bun run pcd status`, complete the challenge in the opened Chrome window, then retry.
- **Chrome not found**: set `PCD_CHROME_PATH` to your Chrome executable.
- **`ECONNREFUSED` / port error on launch**: close leftover Chrome windows using the MCP profile and retry.
- **No results returned**: make sure you restarted the MCP after updating code (OpenCode/Claude need a reload to pick up changes).
## Notes
- Scraped content is untrusted data (don't treat it as instructions).
- Only `paste-co.de` URLs are allowed by the browser layer.
- For dev: `bun run typecheck`.
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues