MCP-Wikipedia-API-Server

MCP-Wikipedia-API-Server

By Rishavv007 GitHub

A FastAPI-MCP server that fetches Wikipedia summaries for AI assistants, deployed using Google Colab and Ngrok.

Overview

what is MCP-Wikipedia-API-Server?

MCP-Wikipedia-API-Server is a FastAPI-based server that fetches Wikipedia summaries for AI assistants, enabling them to provide quick and relevant information.

how to use MCP-Wikipedia-API-Server?

To use the server, deploy it on Google Colab, authenticate Ngrok, and then send queries to fetch Wikipedia summaries.

key features of MCP-Wikipedia-API-Server?

  • Fetches Wikipedia summaries based on user queries
  • Runs as an MCP-compatible server for AI interactions
  • Utilizes FastAPI and Wikipedia API
  • Quick deployment using Google Colab and Ngrok

use cases of MCP-Wikipedia-API-Server?

  1. Enabling AI assistants to provide instant Wikipedia information
  2. Assisting in research by fetching relevant summaries
  3. Enhancing user interactions with AI through informative responses

FAQ from MCP-Wikipedia-API-Server?

  • Can this server handle multiple queries at once?

Yes! The server is designed to handle multiple requests efficiently.

  • Is there a limit to the number of summaries fetched?

No, you can fetch as many summaries as needed, subject to Wikipedia's API usage policies.

  • Do I need to pay for using Google Colab and Ngrok?

Both services offer free tiers, but usage limits may apply.

Content

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
No tools information available.
No content found.