deepseek-web-harness
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@deepseek-web-harnessExplain quantum entanglement with deep think and search"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
DeepSeek Web Harness
Use an authenticated DeepSeek Web session as a local MCP tool from MCP-capable AI harnesses and third-party clients.
Step 1 flow:
MCP-capable harness / third-party client
|
v
deepseek-web-harness
|
local SKILL.md injection
|
v
signed-in normal Chrome profile
|
v
DeepSeek Web
|
v
responseThe first login is manual in a normal installed Chrome/Edge/Chromium window. The bridge then reuses that dedicated browser profile. It does not copy cookies or credentials into the repository.
Setup
npm install
npm run loginSign in to DeepSeek in the browser that opens, then close that browser normally.
Verify direct chat:
npm run chat -- "Reply with exactly: DEEPSEEK WEB READY"Start the MCP server:
npm run mcpStart the local OpenAI/Anthropic-compatible REST API:
npm run apinpm start は API サーバーモードで起動します。対話型の簡易 harness を使う場合だけ npm start -- --harness(または npm run harness)を指定します。harness では独立 session の切り替え、履歴・conversation URL の同期、fork/rename/compact、DeepThink/Search、画像やファイル添付、skill、自動 skill 選択、ストリーム風表示、推定 token 数と速度表示が使えます。ブラウザ UI は応答完了後にテキストを受け取るため、表示ストリームは遅延再生です。
Default base URL: http://127.0.0.1:8787. Swagger UI is available at http://127.0.0.1:8787/docs, the OpenAPI 3.1 document is at /openapi.json, and the DeepWiki indexing guide is at /deepwiki.
Generic MCP stdio config:
{
"mcpServers": {
"deepseek-web": {
"command": "node",
"args": ["E:/projects/deepseek-web-harness/server/index.js"]
}
}
}Tools:
ask_web_deepseek— prompt DeepSeek Web and return structured{ text, thinking, toolCalls, conversationUrl }. Supportsmode(instant,expert,imageRecognition),deepThink,search,newChat,attachments, localskills, and host tool schemas/results.deepseek_web_capabilities— inspect the signed-in Web UI for DeepThink, search, and file-upload support.list_deepseek_skills— list local skills.
REST compatibility endpoints:
POST /v1/chat/completions— OpenAI Chat Completions compatible.POST /v1/responses— OpenAI Responses compatible.POST /v1/messages— Anthropic Messages compatible.POST /v1/auto— automatically detects Anthropic viaanthropic-version, OpenAI Responses viainput, and OpenAI Chat viamessages.GET /v1/models— model aliases that automatically map to DeepThink, Expert, Vision, or Search.
See docs/API.md for OpenAI/Anthropic SDK examples and sharing/authentication setup. See docs/ARCHITECTURE.md for the data flow. The repository also has a DeepWiki entrypoint and DeepWiki page.
ask_web_deepseek accepts skills, for example ["concise"]. Skills live at skills/<name>/SKILL.md and are prepended to the prompt. attachments takes absolute local file paths and uploads them to DeepSeek Web before the prompt is sent. includeThinking: true returns the thinking text visibly rendered by DeepSeek Web separately from the final answer. The bridge also maps the current Web UI controls for Instant, Expert, Image Recognition, DeepThink, and Smart Search.
Tool calls use an MCP-friendly host round trip. Pass the host's available tool schemas in tools. If DeepSeek requests one, toolCalls is returned. Execute it in the host, then call ask_web_deepseek again with the returned conversationUrl and the matching toolResults. The browser bridge does not pretend DeepSeek Web has native MCP access; the host remains responsible for executing tools.
The current signed-in Web UI advertises uploads for common images (png, jpg, webp, gif, svg), PDFs, Office documents, spreadsheets, text/Markdown/CSV/JSON, source-code files, and several additional document/image formats. Use deepseek_web_capabilities to read the live accept list instead of hard-coding it in clients.
Headless mode is supported after the one-time manual login. Set DEEPSEEK_WEB_HEADLESS=1 and the bridge reuses the same signed-in browser profile without showing a window.
CLI examples:
npm run chat -- "Explain this carefully" --mode expert --deep-think --show-thinking --new-chat
npm run chat -- "What is in this file?" --mode imageRecognition --attach C:\path\image.png --new-chat
npm run chat -- "Find the latest information about this topic" --search --new-chat
$env:DEEPSEEK_WEB_HEADLESS="1"; npm run chat -- "Headless test" --new-chatDEEPSEEK_WEB_HEADLESS=1 npm run chat -- "Headless test" --new-chatRelated MCP server: dsh-jiey-browser
Credits
Inspired by miuuyy/codex-chatgpt-web, especially its local bridge -> owned browser session -> web AI response pattern. This project is a separate DeepSeek-oriented implementation.
Disclaimer
This is an unofficial third-party project and is not affiliated with, endorsed by, or sponsored by DeepSeek. It automates a browser session that you sign in to and control. You are responsible for using it in accordance with DeepSeek's terms, policies, rate limits, and applicable laws. DeepSeek may change its website, authentication, verification, models, limits, or available features at any time, which can partially or completely break this project. Do not use this project to bypass authentication, verification, access controls, or service restrictions. This software is provided "as is" without warranty; use it at your own risk.
Notes
Windows, Linux/Ubuntu, and macOS are supported. Common Chrome, Chromium, and Edge locations plus PATH are detected automatically.
Set
DEEPSEEK_WEB_CHROMEto the browser executable if auto-detection does not find it.If the site asks for verification or login again, run
npm run loginand complete it manually.Browser/site UI changes can require selector updates.
MIT licensed.
This server cannot be deployed
Maintenance
Related MCP Connectors
Stealth web browser for agents: search, fetch, click, download and type in persistent MCP sessions.
Scrape, crawl and search the web for AI agents via MCP.
Hyperbrowser MCP — wraps the Hyperbrowser AI-agent browsing API
Browser MCP for logged-in tasks. Uses your Chrome — credentials stay local. Zero-token replay.
Related MCP Servers
- FlicenseNot gradedqualityBmaintenanceA local multimodal recognition workbench that uses your Edge/Chrome session to access DeepSeek Web, exposing MCP tools for recognizing images, documents, audio, and video with privacy-preserving temporary processing.-
- AlicenseNot gradedqualityBmaintenanceEnables DeepSeek Harness agents to control a real Jiey Browser instance via MCP, providing tools for web navigation, interaction, and data extraction.117 npm1MIT
- AlicenseNot gradedqualityCmaintenanceProvides a headless Chromium browser through MCP, enabling AI agents to browse JavaScript-rendered pages, search the web, capture screenshots, extract tables and data, and run stateful multi-step interactions like clicking, typing, and form submission.1,236,914 npm1MIT
- FlicenseNot gradedqualityCmaintenanceEnables interaction with Gemini's web interface through MCP, with real-time streaming of responses and reasoning, stealth browser automation, proxy rotation, and session persistence.-