DeepSeek MCP Sample
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 MCP Samplegenerate an image of a futuristic city skyline"
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 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 链接(或录制的演示视频)以保护源码。
This server cannot be installed
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
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/aberry-h/mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server