FastAPI-MCP维基百科API服务器
一个为AI助手提供维基百科摘要的FastAPI-MCP服务器,使用Google Colab和Ngrok部署。
快速入门指南
功能特性
- 根据用户查询获取维基百科摘要
- 实现MCP兼容服务器以支持AI交互
- 使用FastAPI和Wikipedia API
- 基于Google Colab和Ngrok快速部署
如何在Google Colab中运行
安装依赖
在Colab单元格中运行以下命令:
!pip install fastapi uvicorn pyngrok requests wikipedia-api nest_asyncio
配置Ngrok
在Colab单元格中运行以下命令:
!ngrok config add-authtoken YOUR_TOKEN