Stitch MCP Server with DeepSeek Harness
Google Stitch exposes an MCP server at https://stitch.googleapis.com/mcp. It is remote and header-authenticated, which makes it one of the simpler servers for DSH to call directly. This guide covers the API-key path, the Cordis row, the timeout that decides whether a slow generation looks like a broken connection, and the npm package you do not need.
Last checked 2026-10-13 · English-only guide · checked against the sources listed at the end
Scope: DeepSeek Harness only. The row below is a Cordis patch for DSH's MCP client. Claude Desktop, Cursor, Windsurf and other clients use their own config format, so follow that service's own setup page for those — these steps do not apply there.
At a glance
- Server
- Google Stitch MCP (Stitch docs → MCP → Setup & Authentication)
- Endpoint
https://stitch.googleapis.com/mcp- Transport
- Remote MCP over streamable HTTP
- Authentication
X-Goog-Api-Keyheader with a key created in Stitch settings; the setup page also documents a Google Cloud SDK OAuth path- Install needed
- None for the hosted server
- Tool surface
- Projects, screens, generation and editing, and design systems (per the setup page's tool reference)
- Independent helper
@_davideast/stitch-mcp— a separate Apache-2.0 CLI that proxies Stitch tools, labelled experimental and unaffiliated with Google by its own author- DSH fit
- Direct — streamable-HTTP row with the API key header
- Last checked
- 2026-10-13
Step 1 — Create a Stitch API key
In Stitch, open your profile menu, go to Stitch settings, and create an API key under the API key section of the setup docs. Copy it once and keep it out of version control: the key itself is the whole security story for this endpoint.
Step 2 — Add the DSH row
# cordis.patch.yml — passed with: dsh web --patch ./cordis.patch.yml
- insert:
- id: mcp-stitch
name: '@deepseek-ai/dsh-mcp-client'
config:
serverName: stitch
transport: streamable-http
url: https://stitch.googleapis.com/mcp
headers:
X-Goog-Api-Key: YOUR_STITCH_API_KEY
Keep the header name exactly as the setup page writes it. The patch row id and serverName must be
unique among live clients, because the tool namespace is built from the server name:
mcp__stitch__<tool>.
To keep the row, merge it into $DSH_HOME/profiles/<name>/cordis.patch.yml or the machine-wide
$DSH_HOME/cordis.patch.yml rather than passing a patch file every time.
Step 3 — Raise the per-call timeout before you generate
The MCP client config carries a per-call timeout (toolCallTimeoutMs) alongside reconnection
settings. The tools that create or edit screens are the slow ones: a third-party write-up of the tool list states
that Google's own tool descriptions warn generation and edit calls “can take a few minutes”. When a client
timeout ends the wait, the job on the server side does not stop — so the agent can report a failure on work
that is still running, retry, and spend a second generation. Set a timeout you are comfortable waiting out before
you ask for a screen.
The timeout guidance is a reported risk, not something we measured: we did not run a generation against a Stitch account.
Verify with a read-only call
dsh --profile web --dump-configand confirm themcp-stitchrow is in the booted tree.- Prompt: “Use the stitch tools to list my projects and return the result as-is. Do not generate or modify anything.”
- Reserve generation prompts for work you intend to spend quota on. The first prompt after boot may need to wait for asynchronous tool discovery.
Troubleshooting
- The tool list is empty after boot
- Discovery is asynchronous, so give it a moment and reload. Also confirm the row id and
serverNamedo not collide with another server, and that the YAML indentation survived your editor. - “Authentication failed” from the server
- Regenerate the key in Stitch settings and re-check the header name. One third-party guide reports Stitch API tokens expiring after 90 days as of mid-2026; we did not confirm an expiry policy on Stitch's own setup page, so verify that before designing around it.
- “Permission denied” on the OAuth path
- A third-party note ties this to a project that lacks billing, the required role, or the Stitch API enabled. If you took the API-key path in step 1, this does not apply to you.
- A generation call reported failure but the screen appeared later
- That is the timeout behaviour described in step 3. Raise the per-call timeout and avoid blind retries, which can consume two generations for one screen.
- You expected an export tool
- The reported tool list has no export-to-framework function: it covers projects, screens, generation, editing and design systems. The agent reads the screen and writes your React or Flutter code itself, so output quality tracks the agent more than the server.
Third-party claims to verify. A September 2026 review states the free tier allows 350 generations per month and lists the server's tools after querying it. We are not repeating those as commitments: treat the quota as unconfirmed and confirm the current tool list from your own client. The productivity claims in that review (a “3-5x speedup”) are the author's opinion, not a measurement we can check.
FAQ
Is there a Stitch MCP npm package to install?
No package is needed for Stitch itself: the MCP server is hosted at https://stitch.googleapis.com/mcp, and an earlier guide that pointed at an @google/stitch-mcp package was wrong, because that name does not exist on npm. A different package, @_davideast/stitch-mcp, exists as an independent CLI that proxies the same server and is labelled experimental by its author.
Do I need Google Cloud billing for Stitch MCP?
Not for the API-key path: you create a key in Stitch settings and send it as an X-Goog-Api-Key header. Stitch's setup page documents a second OAuth path that starts with the Google Cloud SDK, and a third-party note ties that path to project permissions and billing.
Why did a Stitch call report failure and still run?
Generation and edit calls can take minutes. A client timeout ends the wait, not the job, so the agent may report failure while the work continues and then spend another generation on a retry. Raise the per-call timeout in the MCP client config before generating.
Can DSH export a Stitch design straight to React or Flutter?
There is no export tool in the reported tool list. The agent fetches the screen and writes your framework code itself, so the result depends on the agent more than on Stitch.
Sources
Every claim above was checked against these pages on 2026-10-13. Third-party material is labelled where it is used.
- Stitch docs — MCP Setup & Authentication — Endpoint, API-key header, OAuth path, client setup, tool reference read 2026-10-13
- davideast/stitch-mcp — README — Independent CLI, proxy mode, virtual tools, its own unaffiliated disclaimer read 2026-10-13
- Justin McKelvey — “Google Stitch MCP: What It Is, the 5-Minute Setup…” — Third-party: long call times, token expiry report, free-tier quota, missing npm package read 2026-10-13
- DeepSeek Harness docs — “Connect a third-party memory MCP server” — Transport configuration, tool naming read 2026-10-13
Related MCP guides
New to MCP in DSH? Start with the DSH MCP setup walkthrough, which covers transports, the patch file and tool naming for every server below.
Superhuman MCP
Superhuman Mail runs a remote MCP server at https://mcp.mail.superhuman.com/mcp. This guide covers what that server requires, why DSH cannot complete its interactive sign-in on its own, the stdio bridge Superhuman documents for desktop clients, and how to check the connection without letting an agent touch your inbox.
Krea AI MCP
Krea hosts an MCP server at https://api.krea.ai/mcp for image and video generation. DSH cannot run Krea's interactive consent screen, so the practical path is the API-token header — and that choice also decides which balance pays for the work.
Alpha Vantage MCP
Alpha Vantage maps its market-data endpoints onto MCP tools and publishes both a hosted endpoint and a local server. For DSH the local server is the documented route, because the hosted endpoint authenticates through a sign-in page — and the data tier, not the connection, is what limits you.
Verification status
These guides document configuration; they are not reports of a live run. Endpoints, prerequisites, tool names and billing rules were read from the sources listed above on 2026-10-13. We did not sign in to any of the four services, did not run a paid generation, and did not send mail, so treat every config row as a documented recipe to test in your own environment. If a service changes an endpoint or its plan terms, that operator's own page wins.