DeepSeek MCP Sample
A Node.js + TypeScript MCP server that proxies to DeepSeek's Chat, Image, and TTS APIs for conversation, image generation, and text-to-speech.
README
DeepSeek MCP Sample
这是一个 Node.js + TypeScript 的 MCP (simple server) 示例项目,演示如何调用 DeepSeek 平台的 Chat、Image、TTS 接口。
主要内容:
- /chat: 聊天接口代理(POST)
- /image: 图片生成接口代理(POST)
- /tts: 文本转语音接口代理(POST)
快速开始:
-
安装依赖
npm install
-
在项目根目录创建 .env 文件,添加:
DEEPSEEK_API_KEY=your_deepseek_api_key
-
开发运行
npm run dev
-
打包并运行
npm run build npm start
示例请求:
curl -X POST http://localhost:3000/chat -H 'Content-Type: application/json' -d '{"prompt":"Hello DeepSeek"}'
注意:本项目使用的 API URL 为占位符(api.deepseek.example)。请根据实际 DeepSeek 文档调整接口路径与参数。
Demo 快速启动
-
安装依赖
npm install
-
在项目根创建 .env 文件,添加:
DEEPSEEK_API_KEY=your_deepseek_api_key
-
启动后端(开发模式)
npm run dev
-
启动静态服务器查看 demo
npx http-server demo -p 8080
然后在浏览器打开 http://localhost:8080
-
使用页面交互
- Chat:输入 prompt,点击发送,页面会调用 /chat 并展示返回 JSON
- Image:输入 prompt,点击生成,页面会预览返回的图片 URL 或 base64
- TTS:输入文本,点击播放,页面会播放返回的音频
注意事项:
- 若没有合法的 DEEPSEEK_API_KEY,后端会将请求转发到占位接口并返回错误。建议先在本地使用 Mock 数据调试页面交互。
- 如果你准备将此项目用于申请 Xiaomi MiMo 或其他平台激励,建议将仓库保持为私有,并在申请材料中附上 demo 链接(或录制的演示视频)以保护源码。
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
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.
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.