MCP + DeepSeek AI Integration Server

MCP + DeepSeek AI Integration Server

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.

Category
Visit Server

README

MCP + DeepSeek AI 集成服务器

本项目是一个基于 Node.js 的 FastMCP 协议服务器,集成 DeepSeek AI 智能对话与代码分析能力。


功能概览

  • 🛠️ MCP 协议服务:通过 FastMCP 提供工具调用能力
  • 🤖 DeepSeek AI 工具:支持智能对话、代码诊断与重构建议

快速开始

1. 获取 DeepSeek API 密钥

  1. 访问 DeepSeek 平台
  2. 注册或登录账户,创建 API 密钥
  3. 复制 API 密钥

2. 配置环境变量

  • Windows PowerShell:
    $env:DEEPSEEK_API_KEY="your-api-key-here"
    
  • Windows CMD:
    set DEEPSEEK_API_KEY=your-api-key-here
    
  • Linux/Mac:
    export DEEPSEEK_API_KEY="your-api-key-here"
    

3. 安装依赖

npm install

4. 启动服务器

npm start

服务端口

  • MCP 服务: http://localhost:4001/mcp

内置 MCP 工具

1. add

  • 描述: 计算两个数字的和
  • 参数: a (数字), b (数字)
  • 返回: 结果字符串

2. deepseek_chat

  • 描述: 调用 DeepSeek AI 进行智能对话或代码分析
  • 参数
    • message (必需): 用户输入内容
    • system_prompt (可选): 系统提示词,定义AI角色
    • model (可选): 模型名称,默认 deepseek-chat
    • temperature (可选): 随机性,默认 0.7
    • max_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

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