MCP ExplorerExplorer

Ai Mcp Demo

@ChenXun1989on a year ago
2 Apache-2.0
FreeCommunity
AI Systems
demo for ai mcp

Overview

What is Ai Mcp Demo

ai-mcp-demo is a demonstration project for AI-based MCP (Multi-Channel Processing), showcasing how to integrate AI functionalities into a server application.

Use cases

Use cases for ai-mcp-demo include building AI-driven chatbots, enhancing customer support systems, and developing interactive learning platforms.

How to use

To use ai-mcp-demo, clone the repository from GitHub, compile the code using Maven, configure the necessary settings including the Deepseek API token, initialize the database, and then start both the server and client applications.

Key features

Key features of ai-mcp-demo include integration with Deepseek API, support for MySQL database, and a client-server architecture that allows for interactive chat functionalities.

Where to use

ai-mcp-demo can be used in various fields such as AI development, chat applications, customer service automation, and educational tools.

Content

ai-mcp-demo

demo for ai mcp

前置要求

  1. jdk17
  2. maven
  3. mysql(8+),可以换其他版本,但需要修改配置文件
  4. deepseek api token

下载代码

git clone [email protected]:ChenXun1989/ai-mcp-demo.git

编译代码

mvn install

修改配置文件

配置deepseek 的api token

初始化数据

脚本在 init/init.sql

启动服务

  1. server 启动 wiki.chenxun.ai.mcp.demo.server.ServerApplication#main
  2. client 启动 wiki.chenxun.ai.demo.server.ClientApplication#main

测试

查询张三英语成绩

http://localhost:9778/chat/mysql?chatMemoryConversationId=1&msg=张三英语成绩

查询李四英语成绩

http://localhost:9778/chat/mysql?chatMemoryConversationId=1&msg=李四英语成绩

查询他俩英语成绩加起来多少分

http://localhost:9778/chat/mysql?chatMemoryConversationId=1&msg=他俩英语成绩加起来多少分

清理上下文记忆

http://localhost:9778/chat/clear?chatMemoryConversationId=1

联系作者

个人博客

https://www.chenxun.wiki

Tools

No tools

Comments

Recommend MCP Servers

View All MCP Servers