分类器MCP服务器

一个基于OpenAI的智能分类器服务器,用于决定访问Neo4j或PostgreSQL数据库。

  • by Chan283
  • Python
  • 本地部署
  • 1 星标
  • 更新于
在 GitHub 查看 chan283/classifier_mcp_server

使用说明

分类器MCP服务器

运行步骤:

1.启动neo4j和postgres docker容器:

  docker run -d --name pgdb -e POSTGRES_PASSWORD=secret -e POSTGRES_DB=mcp_db -p 5432:5432 postgres:15  
  docker run -d --name neo4jdb -e NEO4J_AUTH=neo4j/test12345 -p 7474:7474 -p 7687:7687 neo4j:5    

2.安装要求:

  pip install -r requirements.txt 

3.运行mcp服务器:

 cd mcp_server  
 uvicorn main:app --reload --port 8000  

4.运行mcp客户端:

 cd mcp_client  
 python client.py  

5.执行

 Type prompt in client. Based on this openai will decide whether to access neo4j db or postgres db