Claude Code with MCP Workflows: Three End-to-End Recipes for Browser QA, Databases and Docs
27 October 2026 · Updated 28 November 2026 · 12 min read · by Yang Kai
Stop demoing MCP servers one at a time. Three end-to-end Claude Code workflows — browser QA, database changes, documentation sync — with the guardrails each one needs.
Table inside: Three MCP workflow recipes table
Contents
- The short version
- What makes a workflow, not a pile of servers
- Set the scope first: who gets this workflow?
- Workflow 1: Browser QA after a change
- Workflow 2: Database changes under a read-first rule
- Workflow 3: Documentation that syncs itself
- The three recipes on one page
- Mistakes that quietly break MCP workflows
- Make the workflow repeatable: write it where the agent reads it
- Which workflow should you build first?
- How we researched this
Connecting an MCP server takes one command, and that is exactly the problem. Most MCP setups end up as a drawer of connected servers that never complete a single job: a browser server installed because it looked useful, a database server connected once and never trusted again, a docs server answering questions nobody asks.
A workflow is the opposite of a collection. It starts from a trigger you actually have, alternates agent reasoning with tool verification, writes its results somewhere reviewable, and stops at one hard boundary the agent may not cross.
This article covers composition, not installation: three end-to-end workflows worth building first — browser QA after a change, database changes under a read-first rule, and documentation that syncs itself — with the guardrails each one needs.
The recipes are built from Anthropic’s Claude Code MCP documentation and the servers’ own documentation, checked in November 2026. Where a step depends on a setting or a scope, the documentation it comes from is named.
The short version
| Workflow | Trigger | Hard boundary | Written output |
|---|---|---|---|
| Browser QA | A feature is built or a layout bug is fixed | Never submit real forms or payments | Screenshot folder plus a seen-vs-expected note |
| Database change | A bug report or a schema need | No writes without a reviewed migration file | Migration file plus before/after row counts |
| Docs sync | A feature pull request opens | Drafts only; nothing publishes directly | Doc edits inside the same pull request |
If your servers are not connected yet, the Claude Code plus MCP setup walkthrough covers installation and configuration first. This article assumes working connections.
What makes a workflow, not a pile of servers
Every durable workflow has the same four properties:
- A real trigger. A changed page, a needed migration, a release — not a hypothetical “someday this might be handy.”
- Verification between steps. No long stretch runs on the agent’s say-so. Each tool step produces something checkable before the next one starts.
- A written output. A file, a report, a pull request — something a human can review after the session ends.
- One hard boundary. A production database the agent can read but not write. A browser it can drive but not use to submit real forms.
That boundary thinking is the same discipline as the MCP security checklist, applied per workflow instead of per server. A server can be perfectly safe in one workflow and reckless in another; the boundary belongs to the job.
Set the scope first: who gets this workflow?
Before the recipes, one configuration decision decides whether a workflow survives past your own machine. Anthropic’s MCP documentation defines three scopes for server configuration:
| Scope | Stored in | Who gets it |
|---|---|---|
local (the default) |
~/.claude.json, under the current project |
Only you, only in this project |
project |
.mcp.json in the project root |
Everyone who clones the repo |
user |
~/.claude.json, top level |
Only you, in every project |
Two consequences matter for workflows:
Shared workflows live at project scope. Add the server with --scope project and commit the resulting .mcp.json. Teammates get the same servers when they clone, and Claude Code asks them to approve project-scoped servers before first use — a prompt worth keeping, not silencing.
Credentials never live in the committed file. .mcp.json supports environment variable expansion in a server’s command, args, env, URL and headers, so the committed file can name a variable and each person supplies their own value. A database server carrying your personal credentials belongs at local scope, full stop.
Workflow 1: Browser QA after a change
The job: after building a feature or fixing a layout bug, verify the affected pages in a real browser instead of declaring success from the code.
You need: a browser MCP server connected — the Playwright-based setup covered in automating browser work with the Playwright MCP server.
The steps
- Start the dev server and list the changed routes. The agent works from the diff, not from memory: which pages did this change actually touch?
- Navigate to each route and screenshot it twice — one desktop width, one mobile width — saving files named by route and width.
- Read the console. Errors and failed requests get copied into the report verbatim, not paraphrased.
- Write the seen-vs-expected note. For each route: what the change intended, what the screenshot shows, and any mismatch in plain words.
- Fix and re-check the failing routes only. The loop repeats on the failures, not on the whole site.
You should end with a folder of screenshots and a short note you can spot-check in under a minute.
The two habits that make it trustworthy
First, the agent must report what it saw, not what it expected. “The pricing table overflows at 390px” is QA. “The layout looks responsive” is a hope.
Second, screenshots go to a folder with predictable names. A report you cannot verify is just a second claim stacked on the first one.
Where the boundary goes
The browser can navigate, click and type — on your dev server, with test data. It never submits a real form, completes a real payment, or acts on a production account. Put that boundary in the workflow’s instructions and, where the server supports it, in its configuration, not only in your head.
Workflow 2: Database changes under a read-first rule
The job: schema changes, seed data, and “why does this report look wrong” investigations.
You need: a database MCP server connected with read-only credentials. Server choice matters less here than process; the guide to MCP for databases compares the main options.
The steps
- Investigate read-only. Every session starts with
SELECT. The agent shows you the actual rows before proposing anything. - Draft the write as a file. Any change becomes a migration or a script in the repo, reviewed like code — because it is code.
- A human approves the file. Not the idea of the file: the file, with the exact statements it will run.
- Execute, then re-run the same query. The agent shows before/after counts from the identical
SELECTused in step 1.
Why the read-first rule changes the work
An agent that can query the real database stops inventing plausible column names — the single biggest quality jump a database connection offers. But an agent with unmediated write access to a production database is a liability no model quality fixes.
So the workflow pairs with permission modes and allowlists: read credentials by default, write credentials granted as an explicit, per-session decision, and the server kept at local scope so the connection never travels with the repo.
Workflow 3: Documentation that syncs itself
The job: keeping docs honest after the code moves.
You need: the agent’s file tools for your own docs, and optionally a hosted docs server for external references.
The steps
- Diff the pull request. The agent lists what changed and extracts the public behaviours: new options, changed defaults, renamed anything.
- Match behaviours to docs pages. Each behaviour gets the page or pages that describe it — or a flag that no page does.
- Draft the doc edits in the same pull request. This is the entire trick. A separate “update the docs later” task has a half-life of never.
- Flag the source of each claim. Every edited paragraph is marked as sourced from the codebase or from fetched documentation, so you know what to double-check.
The reverse direction
Where an external docs server earns its place is while code is being written, not after: when the agent needs a library’s current API, fetching the real documentation beats relying on training memory, which may describe a version from two releases ago.
The honest framing matters in both directions. A docs page that quietly mixes verified facts with remembered ones teaches readers to distrust all of it.
The three recipes on one page
| Step | 1. Browser QA | 2. Database change | 3. Docs sync |
|---|---|---|---|
| Trigger | Feature built / layout fix | Bug report / schema need | Feature PR opened |
| Server(s) | Browser (Playwright) | Database | Docs / filesystem |
| Step 1 | Start dev server, list changed routes | Read-only query; show actual rows | Diff the PR; list public behaviours |
| Step 2 | Screenshot each route, 2 widths | Draft migration as a file in repo | Match behaviours to docs pages |
| Step 3 | Check console errors; describe what is SEEN | Human reviews the migration file | Draft doc edits inside the same PR |
| Step 4 | Fix, re-screenshot the failing routes only | Execute, re-run query, show before/after | Flag claims sourced from memory vs docs |
| Boundary | Never submit real forms / payments | No writes without the reviewed file | No publishing; PR only |
| Output | Screenshot folder + seen-vs-expected note | Migration file + before/after counts | Doc diff in the PR |
Mistakes that quietly break MCP workflows
- The server sits at the wrong scope. A workflow only you can run is a demo. If a teammate should get it, it belongs in
.mcp.jsonat project scope. - Credentials get committed. One leaked DSN in a shared config undoes every other guardrail. Use environment variable expansion, and keep personal servers at local scope.
- There is no verification step. If the agent grades its own homework, the workflow produces confidence, not evidence. Every recipe above has a step where a tool output — a screenshot, a row count, a diff — checks the agent’s claim.
- The boundary lives only in prose. Instructions in a prompt get forgotten mid-session. Boundaries that matter belong in credentials, permission settings, or hooks that run on every matching tool call.
- The workflow was never written down. If the steps live in one person’s chat history, the workflow retires when they do. Write the recipe where the agent — and the team — can read it, as the next section covers.
Make the workflow repeatable: write it where the agent reads it
A workflow that lives in your head runs once. The steps, the boundary and the output format belong in a file the agent loads — a section of the project’s CLAUDE.md for the short version, or a dedicated skill for a workflow with branching steps.
Three things are worth writing down explicitly:
- The trigger, in the words you will actually use (“after any change under
src/pages/”), so the workflow starts without a negotiation. - The verification step, named as a tool output — screenshot, row count, diff — not as an instruction to “check carefully.”
- The boundary, restated where the steps are, even if it also lives in credentials and permissions. Layers fail independently; that is the point of having layers.
Written down, the workflow also becomes reviewable. A teammate can read the recipe, spot the missing verification step, and improve it in a pull request — the same treatment as the team CLAUDE.md workflow. Teams that run several of these eventually package them; converting repeated prompts into skills covers that step.
Which workflow should you build first?
Pick by pain, not by novelty.
If you ship UI, build browser QA first — it pays back within a week, because layout bugs are the class of defect code review waves through. If you debug data, build the read-first database workflow; it changes debugging from guesswork to evidence. If your docs embarrass you, build the sync workflow — unglamorous, and the one that compounds longest.
For server selection itself, the job-by-job server guide maps tasks to servers worth installing, and what MCP does for builders explains the protocol underneath all three recipes. When a workflow outgrows a single session — scheduled runs, shared infrastructure, uptime questions — running MCP in production covers what changes, and testing MCP servers covers proving a server behaves before a workflow depends on it.
Start with one workflow. Run it until the steps feel boring, and write the steps down where the agent can read them. Boring is the goal: a workflow you trust is one whose every step you have already seen succeed.
How we researched this
This article is desk research, not a lab report. The scope behaviour, the .mcp.json approval prompt and environment variable expansion come from Anthropic’s official Claude Code MCP documentation. The workflow structures are the patterns those documents and the servers’ own documentation support, organised around triggers, verification and boundaries. Nothing here claims a benchmark or a timed test — the recipes are procedures to adopt and adapt, and the MCP directory tracks the servers they run on.
FAQ
What is the best first MCP workflow to build with Claude Code? The one matching your most frequent pain: browser QA if you ship UI, a read-first database workflow if you debug data, or documentation sync if your docs drift. Build one, run it until it is boring, then add the next.
Should an agent ever write directly to a production database via MCP? Not by default. Give the server read-only credentials, have writes drafted as reviewed migration files, and grant write access as an explicit per-session decision.
How is an MCP workflow different from just installing MCP servers? A server is a capability; a workflow is a job with a trigger, ordered steps, verification between them, a boundary, and a written output. Installed servers without workflows mostly sit unused.
Where should MCP configuration live so my team gets the same setup?
In .mcp.json at the project root, added with --scope project and committed to git. Keep credentials out of that file — reference environment variables instead, and keep servers carrying personal credentials at local scope.
How do I stop an MCP workflow from touching production? Layer the boundary: read-only credentials where reads are enough, permission settings that deny the dangerous tools, and hooks for anything that must be checked on every call. A line in a prompt is the weakest layer, not the only one.
Category: Claude Code & Context Engineering · Tags: #claude-code #mcp #testing #automation #databases
Next step: this article is part of Claude Code guides, which covers the full topic from first setup to advanced use.