Token导航 LogoToken导航TokenDH.com
Gradio MCP AI Chat Notebook logo
AI代理stdio官方级别未说明来源级核验

Gradio MCP AI Chat Notebook

MCP Server

一个结合AI模型(Ollama)和实时工具/数据的Jupyter笔记本单元,支持交互式聊天和自动工具调用。

工具数

0

提示词数

0

GitHub Stars

1

资源数

0
AI聊天PythonAI代理

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

martianspaceships

提供方

martianspaceships

最后核验

2026/5/17 20:21

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

命令预览

pip install ollama mcp rich nest_asyncio

详细介绍

📡🧠 Gradio MCP AI聊天笔记本

![Python](https://www.python.org/) ![License: MIT](LICENSE) ![Jupyter](https://jupyter.org/) ![Open Source](https://github.com/)

一个Jupyter笔记本就绪单元格,结合了 人工智能模型(Ollama) 随着 实时工具/数据 通过Gradio MCP服务器。\ 与人工智能聊天,让它自动调用工具,并获得智能答案——所有这些都来自一个笔记本电脑。
受以下MCP CLient的启发:https://medium.com/@jonigl/build-an-mcp-client in minutes-local-ai-agents-just-got-real a10e186a560f

______________________________________________________________________

✨ 特性

  • 单细胞交互回路:键入问题,获取答案,键入 quit 停止
  • 工具调用支持:人工智能可以决定运行真实的工具(例如天气、数据库)
  • 清洁输出:带格式的答案 rich
  • 重试并优雅退出:对连接问题具有鲁棒性
  • 易于解释和演示:适用于Jupyter/VSCode笔记本

______________________________________________________________________

🚀 快速启动

🐍 请确保您已安装Python 3.8+。

1.️⃣ 安装依赖项

pip install ollama mcp rich nest_asyncio

2️⃣ Ensure servers are running
Ollama server (with your chosen model downloaded, e.g., llama3.1:8b)
Gradio MCP server, e.g., http://localhost:7860/gradio_api/mcp/sse
3️⃣ Open the notebook
Copy the big code cell provided.
4️⃣ Run it & chat

Initially prompted: What would you like to know? (or type 'quit' to exit): 

Type questions → get answers!
Type quit to stop.

📦 Requirements
Python 3.8+
ollama Python client
mcp Python client
rich
nest_asyncio

🧰 Why use this?
Combines static AI knowledge with live data
Great demo for non-developers and teams
Clean, notebook-friendly workflow
Easy base for building custom AI agents

📝 License
This project is licensed under the MIT License.

🤝 Contributing
Contributions, feedback, and issues welcome!
If you extend the notebook (more tools, richer UI, etc.), feel free to open a PR.

⭐️ If you find this useful, please star the repo!

目录标签

目录标签

AI聊天PythonAI代理本地部署Jupyter笔记本工具调用交互式实时数据

接入字段

传输方式(transport,传输协议)

stdio

鉴权方式(authType,认证方式)

none

工具数量(toolCount,工具数)

0

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

stdionone部署方式未说明

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

来源信息

继续浏览同类 MCP