DeepSeek Pi MCP
Click on "Install 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 Pi MCPstart a coding task to implement a sorting algorithm"
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 Pi MCP
An MCP server that gives local AI agents access to DeepSeek V4 through Pi's coding-agent SDK and provider layer.
Setup
Install dependencies and build:
npm install
npm run buildStore a DeepSeek API key using Pi's credential flow (/login in Pi, selecting DeepSeek). The server intentionally reads Pi's stored deepseek credential and does not accept keys from MCP callers.
Configure approved workspaces as a JSON array of existing directories:
$env:DEEPSEEK_MCP_WORKSPACE_ROOTS = '["C:\\work\\projects"]'If DEEPSEEK_MCP_WORKSPACE_ROOTS is unset, the server defaults to its own working directory at launch. For a global install (e.g. registered once at user scope in Claude Code), leave it unset — each MCP client spawns the server with cwd set to the calling project's directory, so the allowed workspace tracks whichever project invoked it.
Start the stdio server:
npm startAn MCP client can launch the built entrypoint directly. For example:
{
"mcpServers": {
"deepseek-pi": {
"command": "node",
"args": ["C:\\path\\to\\deepseek-pi-mcp\\dist\\index.js"],
"env": {
"DEEPSEEK_MCP_WORKSPACE_ROOTS": "[\"C:\\\\work\\\\projects\"]"
}
}
}
}For a custom Pi data directory, set PI_AGENT_DIR to the directory containing auth.json and models.json.
Related MCP server: Serena
MCP tools
deepseek_chatsends a normalized conversation to eitherdeepseek-v4-flashordeepseek-v4-pro. The model is required on every call. Tool definitions are forwarded and returned tool calls are not executed by this server.start_coding_taskstarts an asynchronous Pi coding session in an approved workspace and returns a task ID.send_coding_task_messagesends a new prompt to an idle task or queuessteer/follow_upinput while it is running.get_coding_task_statusreturns state, recent events, latest assistant text, and Pi usage/cost statistics.get_coding_task_resultreturns the same bounded transcript and final result, withresultAvailableindicating whether the task has settled.cancel_coding_taskaborts an active task.close_coding_taskdisposes of a session and removes it from memory.
Coding sessions are resumable only while this server process is alive. Pi's read/write/edit/search and bash tools run with the server user's normal operating-system permissions; configured workspace roots constrain task selection and cwd but are not an OS sandbox.
Development
npm run typecheck
npm run build
npm testThis server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/lebobo88/deepseek-pi-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server