MCP-Wikipedia-API-Server logo

MCP-Wikipedia-API-Server

by Rishavv007

A FastAPI-MCP server that fetches Wikipedia summaries for AI assistants. It's deployed using Google Colab and Ngrok for easy access.

View on GitHub

Last updated: N/A

MCP-Wikipedia-API-Server

A FastAPI-MCP server that fetches Wikipedia summaries for AI assistants, deployed using Google Colab and Ngrok. This project implements a Model Context Protocol (MCP) server using FastAPI to allow AI assistants to fetch Wikipedia summaries. The server is deployed on Google Colab and exposed via Ngrok.


Features

Fetches Wikipedia summaries based on user queries
Runs as an MCP-compatible server for AI interactions
Uses FastAPI and Wikipedia API
Works with Google Colab + Ngrok for quick deployment


How to Run in Google Colab

Install Required Dependencies

Run this command in a Colab cell:

!pip install fastapi uvicorn pyngrok requests wikipedia-api nest_asyncio

Authenticate Ngrok

Run this command in a Colab cell:

!ngrok config add-authtoken YOUR_TOKEN