pline.ai API — Agent skill and MCP
Use the hosted pline.ai API from an agent skill or an MCP client. Both integrations use your own
API key and call the same hosted scraping API. The scraping backend is not part of this repository.
| Integration | Contents | Requirements |
|---|
| pline-ai skill | Agent instructions, API reference, Python CLI for scrape, batch, crawl, map, and search | Python 3.10+; no pip dependencies |
| MCP server | Ten tools over local stdio; embedded usage guide and API reference | npx -y pline-ai (Node.js 18+); also a Docker image, prebuilt binaries, or a Cargo source build |
| n8n community node | n8n-nodes-pline: Scrape, Batch Scrape, Crawl, Map and Search operations for n8n workflows | n8n 1.x; install from n8n's community nodes panel |
Fastest setup: run npx -y pline-ai@latest init and enter your API key. It configures every
supported MCP client on your machine and installs the skill; see Quick install.
For remote agents, the MCP server also supports Streamable HTTP with Pline OAuth. Users sign in,
choose a workspace API key, and connect at the hosted /mcp URL; see
mcp-server/docs/oauth-hosting.md for setup.
Quick install
One command: init
Needs Node.js 18+. Run it in a terminal:
npx -y pline-ai@latest init
init finds the MCP clients on your machine, shows what it will change, asks you to confirm, and
asks for your pline.ai API key (input hidden; or set PLINE_API_KEY first). Then it:
| Client | What init does | Where the key is kept |
|---|
| Claude Code | claude mcp add pline-ai --scope user … | Claude Code's user config |
| Codex | codex mcp add pline-ai … | ~/.codex/config.toml |
| Cursor | adds pline-ai to ~/.cursor/mcp.json | that file |
| VS Code | adds pline-ai to your user mcp.json | not stored; VS Code asks on first start |
| Claude Desktop | adds pline-ai to claude_desktop_config.json (macOS, Windows) | that file |
| Windsurf | adds pline-ai to ~/.codeium/windsurf/mcp_config.json | that file |
It also installs the agent skill for those agents with skills.sh. Existing config
files are merged, never replaced: other servers stay, a *.pline-backup-<time> copy is written first,
and files that are not plain JSON (for example with comments) are left alone and reported. Restart
your clients afterwards.
| Option | Effect |
|---|
--agent <id> | Only this client; repeat for several: claude-code, codex, cursor, vscode, claude-desktop, windsurf |
--mcp-only / --skill-only | Set up just the MCP server, or just the skill |
--dry-run | Show what would change without changing anything |
--yes | Skip the confirmation (needed when not running in a terminal) |
--base-url <url> | Use another API base URL (default https://apix.pline.ai/v1) |
npx -y pline-ai@latest init --agent cursor --agent claude-code # only these clients
npx -y pline-ai@latest init --dry-run # preview, change nothing
PLINE_API_KEY=your-key npx -y pline-ai@latest init --yes # non-interactive (scripts, CI)
Run init again at any time to change the key or add a newly installed client; it updates the
existing pline entries in place. To remove pline.ai, delete the pline-ai entry from each client (claude mcp remove pline-ai --scope user,
codex mcp remove pline-ai) and run npx skills remove pline-ai -g.
npx -y pline-ai on its own is the MCP server, not the installer: run by hand it only waits for an
MCP client. Use init to set things up.
Install separately
To set up the two integrations by hand instead, use either or both of the following.
Agent skill (instructions plus a Python CLI the agent runs):
npx skills add grepsr/pline.ai
This copies skills/pline-ai from this GitHub repository into your
agent's skills folder (Claude Code, Cursor, Codex, and more). skills is the
skills.sh installer, not a pline package; the skill is not published to npm.
Running it needs Python 3.10+ and PLINE_API_KEY in the agent's environment (PLINE_BASE_URL
defaults to https://apix.pline.ai/v1); see
Skill setup.
MCP server (ten tools for any MCP client):
npx -y pline-ai
You do not run this yourself: add it to your MCP client's configuration below and the client starts
it. It needs Node.js 18+ (or Docker).
The MCP server is the pline-ai npm package, listed in the
official MCP Registry
as io.github.grepsr/pline-ai, and also shipped as the ghcr.io/grepsr/pline-mcp image.
Every MCP client takes the same configuration: