DeepSeek Pi MCP

DeepSeek Pi MCP

Enables local AI agents to access DeepSeek V4 models and perform coding tasks via Pi's agent SDK.

Category
Visit Server

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_chat sends a normalized conversation to either deepseek-v4-flash or deepseek-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_task starts an asynchronous Pi coding session in an approved workspace and returns a task ID.
  • send_coding_task_message sends a new prompt to an idle task or queues steer/follow_up input while it is running.
  • get_coding_task_status returns state, recent events, latest assistant text, and Pi usage/cost statistics.
  • get_coding_task_result returns the same bounded transcript and final result, with resultAvailable indicating whether the task has settled.
  • cancel_coding_task aborts an active task.
  • close_coding_task disposes 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

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.

Official
Featured
TypeScript
Magic Component Platform (MCP)

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.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

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.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

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.

Official
Featured
TypeScript
Kagi MCP Server

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.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

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.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured