DeepSeek Pi MCP
Enables local AI agents to access DeepSeek V4 models and perform coding tasks via Pi's agent SDK.
README
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 build
Store 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 start
An 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.
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 test
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.