generate_codeLABSCO SUMMARY
The chain is the reason to pick this over calling the API yourself.
execute_chain turns generate → complete → optimise into a single request, with each step seeing what the last one produced. That is a real saving when a task is three predictable passes rather than a conversation. Worth knowing: the API key is billed by DeepSeek, not by this server, so the built-in caching is the only cost control in the box.
What it is
A DeepSeek API wrapper for MCP clients. Three tools cover writing new code, completing existing code, and rewriting code against a target such as performance or readability; a fourth runs several of them in sequence, passing each step's output into the next.
What you get
generate_codetakes aprompt, alanguageand atemperaturecomplete_codecontinues existingcodegiven aprompt— for example adding input validation and error handlingoptimize_coderewrites code against atarget, withperformanceandsecurityshown as valuesexecute_chainruns a list ofsteps, each naming atoolNameand its params, with context carried between them- Request caching with a TTL, plus caching of chain results, so repeated work does not re-bill the API
Requirements
Node.js >= 18.0.0 and a DeepSeek API key. Published as deepseek-mcp version 1.0.0; the documented path is clone, npm install, npm run build, then point your client's command at node and its args at build/index.js. The key goes in the server entry's env as DEEPSEEK_API_KEY.
Setup effort
Build from source — git clone https://github.com/Sheshiyer/deepseek-mcp-with-MoE.git
USE CASES
Getting a first version of a function in a named language
Describe what it should do and pick the language, rather than pasting a prompt into a separate tool.
Hardening code you already have
Pass the existing code and ask for validation and error handling to be filled in around it.
Rewriting for a specific goal
Name the target — performance or security — instead of hoping a general 'improve this' lands there.
Running the whole pass in one request
Chain generation, completion and optimisation so each step starts from the previous result.
4 tools
Listed in project docs. Your client may show a different list.
complete_codeoptimize_codeexecute_chainBEFORE YOU INSTALL
What to know first
Tools you get
4 tools named in the project's documentation.
Requires
- Node.js >= 18.0.0
- A DeepSeek API key, set as DEEPSEEK_API_KEY in the block's env
Where it runs
The documented client runs the server on your machine.
INSTALLATION
Connect your client
You clone and build this one yourself.
Server setup
git clone https://github.com/Sheshiyer/deepseek-mcp-with-MoE.git
cd deepseek-mcp-with-MoE
npm install
npm run buildMCP Clients
Any MCP client
{
"mcpServers": {
"deepseek": {
"command": "node",
"args": [
"<YOUR_PATH_TO_DEEPSEEK_MCP_WITH_MO>/build/index.js"
],
"env": {
"DEEPSEEK_API_KEY": "<YOUR_DEEPSEEK_API_KEY>"
}
}
}
}