loading…
Search for a command to run...
loading…
A Node.js + TypeScript MCP server that proxies to DeepSeek's Chat, Image, and TTS APIs for conversation, image generation, and text-to-speech.
A Node.js + TypeScript MCP server that proxies to DeepSeek's Chat, Image, and TTS APIs for conversation, image generation, and text-to-speech.
这是一个 Node.js + TypeScript 的 MCP (simple server) 示例项目,演示如何调用 DeepSeek 平台的 Chat、Image、TTS 接口。
主要内容:
快速开始:
安装依赖
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 文档调整接口路径与参数。
安装依赖
npm install
在项目根创建 .env 文件,添加:
DEEPSEEK_API_KEY=your_deepseek_api_key
启动后端(开发模式)
npm run dev
启动静态服务器查看 demo
npx http-server demo -p 8080
然后在浏览器打开 http://localhost:8080
使用页面交互
注意事项:
Run in your terminal:
claude mcp add deepseek-mcp-sample -- npx