Dev Tool Experiences
All articles

· 7 min read

MCP Servers Every Cline User Should Know About

By X. Zhang

  • tools

If you use Cline regularly, know these four MCP servers: Context7 for library docs, Playwright for browser verification, GitHub for repository and PR context, and Sentry for live error investigation. Don’t install all four and leave them enabled forever; add the smallest tool surface that makes the current task less guessy.

That distinction matters. MCP is most useful when Cline is missing a source of truth—not when you want to give it another 40 tools and hope its judgment improves. Start from Cline’s MCP Servers panel or run cline mcp; the CLI can add, disable, authorize, and remove servers, and Cline recommends explicit Streamable HTTP for remote servers rather than relying on the legacy SSE default.

Context7: use it when the dependency is moving faster than model training

Context7 is the one I’d add first for framework work. It resolves a library and fetches current, version-specific documentation into the agent’s context. That’s useful for the tasks where a plausible answer is worse than no answer: a changed Next.js convention, a new SDK method, an obscure Cloudflare binding, or a migration between major versions.

cline mcp add context7 --yes -- npx -y @upstash/context7-mcp

Then make the invocation explicit in the task: Update our Next.js middleware for the installed version. Use Context7, then show the docs-derived API assumptions before editing. Context7’s own guidance supports the same habit: ask for a specific library and topic rather than dumping broad documentation into the prompt. If the dependency name is ambiguous, give Cline the library ID after the first lookup—for example, /vercel/next.js rather than “next.”

What it’s bad at: private internal packages, your company’s runbooks, and proving what version your repository actually uses. It retrieves documentation; it does not replace reading package.json, a lockfile, or the code already calling the API. Its API key is optional but provides higher rate limits and private-repository support. Keep that key in the MCP server environment, not pasted into prompts or committed configuration.

Playwright MCP: make Cline verify the UI instead of narrating it

Playwright MCP is the answer when “the tests pass” does not tell you whether the button can be clicked, the redirect actually lands, or the empty state reads like English. It drives a browser through accessibility snapshots rather than pixel coordinates, which gives Cline stable element references such as a textbox or a button label.

{
  "mcpServers": {
    "playwright": {
      "type": "stdio",
      "command": "npx",
      "timeout": 30,
      "args": ["-y", "@playwright/mcp@latest"],
      "disabled": false,
      "autoApprove": []
    }
  }
}

Put that in Cline’s MCP settings, start your app, and give Cline a narrow verification request: Open http://localhost:3000/settings, change the display name, save it, reload once, and report the visible result and any console errors. The first browser download can add friction, so don’t judge it by a cold start when you’re trying to fix a two-line CSS issue.

It’s also not a replacement for your maintained Playwright suite. Browser-driving an agent is slower and more verbose than a focused test, and it can make an exploratory pass look more deterministic than it is. Use it to discover the right assertion, reproduce a bug, or validate a changed workflow; turn the durable result into a normal test afterward. Avoid handing it an already-authenticated personal browser profile unless the task really requires it.

GitHub MCP: give Cline the ticket and review history, not just a local checkout

GitHub MCP pays off when the answer is outside the repository: the issue that defined the bug, the PR discussion that explains why a strange branch exists, an action run that failed, or a related patch in another repo. The trap is exposing every GitHub write operation before Cline has earned that trust.

Configure the hosted GitHub server with only the toolsets you use for investigation, and make the first connection read-only. GitHub’s server supports both an allow-list of toolsets and a strict read-only switch; read-only wins even if a selected toolset includes a write action.

{
  "mcpServers": {
    "github": {
      "type": "streamableHttp",
      "url": "https://api.githubcopilot.com/mcp/",
      "headers": {
        "X-MCP-Toolsets": "issues,repos,pull_requests",
        "X-MCP-Readonly": "true"
      },
      "disabled": false,
      "autoApprove": []
    }
  }
}

After adding it, use cline mcp to complete or rerun OAuth authorization. Then ask a bounded question: Read issue 1842 and the linked PRs. Summarize the reproduction steps, identify the files that changed previously, and do not edit anything. GitHub’s default toolsets include more than this, so the explicit header is worth the few extra lines. Fewer tools makes Cline’s selection problem smaller and makes your approval screen less alarming.

GitHub MCP is bad at protecting you from hostile repository content. Issues, PR comments, commit messages, and public files can all carry instructions aimed at an agent. GitHub offers Lockdown mode as a best-effort filter for public content from people without push access, but it is not an authorization boundary. Keep read-only on for research, treat retrieved text as untrusted, and use a separate deliberate setup if you want an agent to open issues or change PR state.

Sentry MCP: start from the production failure, not a guessed stack trace

If your team uses Sentry, its hosted MCP server is the practical production-context connector. Scope the URL to one organization and project instead of connecting at the account root: Sentry says project-scoped endpoints hide unnecessary discovery tools and default queries to that project. That reduces both tool noise and the chance that Cline investigates the wrong service.

{
  "mcpServers": {
    "sentry": {
      "type": "streamableHttp",
      "url": "https://mcp.sentry.dev/mcp/acme/payments-api",
      "disabled": false,
      "autoApprove": []
    }
  }
}

Replace the example organization and project slugs, authenticate through Cline’s remote-server flow, then use a request with a time window and a goal: Find unresolved errors in the last 24 hours after release 2.18.0. Group by root exception, inspect the most frequent issue, and propose the smallest code change. Do not resolve or assign the issue.

Sentry MCP is not a permission to let an agent triage production. The local server’s skill model includes inspection, fix recommendations, triage, and project-management capabilities, and Sentry notes that natural-language search tools require a configured LLM-provider key. For normal debugging, stick to inspection, keep Cline approvals on, and read the returned events as potentially sensitive production data—not context you casually paste into another chat.

Run a small, task-shaped MCP inventory

The useful default is not “all servers enabled.” Keep Context7 available if you routinely work across fast-changing dependencies. Enable Playwright for UI work, GitHub for issue-driven changes and review archaeology, and Sentry when an error report is the actual starting point. Disable the rest after the task; Cline supports toggling and restarting servers without deleting their definitions.

Before you approve any tool call, check three things: whether the server needs to write, whether its credential can reach more data than the task needs, and whether the result is untrusted text masquerading as instructions. That’s the boring workflow, but it’s also the one that lets Cline reach outside the editor without turning every bug fix into an access-control incident.

Sources & citations

  1. [1]Cline MCP documentation
  2. [2]Context7 MCP README
  3. [3]Playwright MCP README
  4. [4]GitHub MCP Server configuration guide
  5. [5]Sentry MCP connection documentation
  6. [6]Sentry MCP server README
MCP Servers Every Cline User Should Know About | Dev Tool Experiences