make-a-simple-mcp-server
About
本项目旨在构建一个本地智能舆情分析系统,通过自然语言处理与多工具写作,实现用户查询意图的自动理解、新闻检索、情绪分析、结构化输出与邮件推送。
Details
- Author
- JLQusername
- Downloads
- 175
- Categories
- Other
Jump to
- Automatic understanding of user query intent
- News retrieval via Serper API
- Sentiment analysis of retrieved content
- Structured output (JSON, Markdown)
- Email push of analysis results
- Conversational interface (CLI-based)
Configure a .env file with API keys from Alibaba Bailian platform, Serper API key, and SMTP credentials. Run python client.py in the project root directory. Type queries and enter quit to end the session.
make-a-simple-mcp-server
本项目旨在构建一个本地智能舆情分析系统,通过自然语言处理与多工具写作,实现用户查询意图的自动理解、新闻检索、情绪分析、结构化输出与邮件推送。环境搭建
python 3.12
然后安装对应的依赖,缺少什么安装什么即可
然后要在本地增加一个.env文件,需要去阿里百炼平台申请一个key
``.env
BASE_URL="https://dashscope.aliyuncs.com/compatible-mode/v1"
MODEL=qwq-plus
DASHSCOPE_API_KEY="你的key"
SERPER_API_KEY="618b99091160938bb51b5968aad7312428bbba76"
SMTP_SERVER=发送邮件服务器
SMTP_PORT=465
EMAIL_USER=你的邮箱
EMAIL_PASS=你的授权码
`
运行项目
运行项目,在项目根目录下执行python client.py
运行结果
运行client.py`:




可以看到,对应的文件也被保存了




输入quit就可以结束对话

Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.



