Used for making HTTP requests to the DeepSeek AI API, enabling the chat and code analysis functionality.
Serves as the foundation for the FastMCP protocol server, enabling the integration with DeepSeek AI capabilities.
Provides schema validation for the MCP tools, ensuring proper data structures when interacting with the DeepSeek AI API.
MCP + DeepSeek AI 集成服务器
本项目是一个基于 Node.js 的 FastMCP 协议服务器,集成 DeepSeek AI 智能对话与代码分析能力。
功能概览
🛠️ MCP 协议服务:通过 FastMCP 提供工具调用能力
🤖 DeepSeek AI 工具:支持智能对话、代码诊断与重构建议
快速开始
1. 获取 DeepSeek API 密钥
访问 DeepSeek 平台
注册或登录账户,创建 API 密钥
复制 API 密钥
2. 配置环境变量
Windows PowerShell:
$env:DEEPSEEK_API_KEY="your-api-key-here"Windows CMD:
set DEEPSEEK_API_KEY=your-api-key-hereLinux/Mac:
export DEEPSEEK_API_KEY="your-api-key-here"
3. 安装依赖
4. 启动服务器
服务端口
MCP 服务: http://localhost:4001/mcp
内置 MCP 工具
1. add
描述: 计算两个数字的和
参数:
a
(数字),b
(数字)返回: 结果字符串
2. deepseek_chat
描述: 调用 DeepSeek AI 进行智能对话或代码分析
参数:
message
(必需): 用户输入内容system_prompt
(可选): 系统提示词,定义AI角色model
(可选): 模型名称,默认 deepseek-chattemperature
(可选): 随机性,默认 0.7max_tokens
(可选): 最大生成token数,默认 1000
返回: AI 回复内容
3. get_prompts
描述: 获取可用的AI提示词模板
参数:
template
(可选): 模板名称返回: 模板详情或全部列表
AI 提示词模板
frontend_architect
名称: 前端架构师
描述: 专业的前端代码质量优化和Vue项目重构专家
内容摘要:
深度扫描JavaScript和Vue代码,识别性能缺陷、可维护性问题、Vue反模式、JS坏味道
自动检测Vue版本并提供版本兼容的重构方案
生成完整可运行的重构代码片段
故障排查
检查 DEEPSEEK_API_KEY 是否正确设置
检查网络连接
查看控制台日志获取详细错误信息
端口冲突可修改 server.js 中端口号
技术栈
Node.js
FastMCP
DeepSeek AI
Zod
Axios
dotenv
许可证
ISC
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
A Node.js-based FastMCP protocol server that integrates DeepSeek AI capabilities for intelligent conversations and code analysis, providing tool invocation abilities through the MCP protocol.
Related MCP Servers
- -securityAlicense-qualityA high-performance FastAPI server supporting Model Context Protocol (MCP) for seamless integration with Large Language Models, featuring REST, GraphQL, and WebSocket APIs, along with real-time monitoring and vector search capabilities.Last updated -9MIT License
- -securityAlicense-qualityNode.js server that allows searching Discourse forum posts through the Model Context Protocol (MCP), enabling AI assistants to retrieve content from Discourse forums.Last updated -96MIT License
- -securityFlicense-qualityA FastMCP server that enables AI agents to safely execute shell commands, run code in Python/Node.js/Go, and install packages, all packaged in Docker for secure deployment.Last updated -1
- -securityFlicense-qualityA comprehensive Model Context Protocol (MCP) server that provides 37+ intelligent development tools across JavaScript/TypeScript, Rust, and Python with security-first design and high-performance features.Last updated -111