Sponsored by Deepsite.site

Wikipedia Summarizer MCP Server

Created By
codingaslu8 months ago
An MCP (Model Context Protocol) server that fetches and summarizes Wikipedia articles using Ollama LLMs, accessible via both command-line and Streamlit interfaces. Perfect for quickly extracting key information from Wikipedia without reading entire articles.
Content

Wikipedia Summarizer MCP Server

A Model Client Protocol (MCP) server that fetches Wikipedia articles and summarizes them using Ollama LLM models.

Overview

This project consists of three main components:

  • Ollama Server: An MCP server that provides a tool to summarize Wikipedia articles using Ollama LLM models
  • Command-line Client: A client that can connect to the MCP server and request article summaries
  • Streamlit Interface: A web UI that provides a user-friendly way to interact with the MCP server

Prerequisites

  • Python 3.8+
  • Ollama installed and running locally with the deepseek-r1:1.5b model (or update the model in ollama_server.py)
  • Internet connection to fetch Wikipedia articles

Installation

  1. Clone this repository
  2. Install the required packages:
    uv pip install -r requirements.txt
    

Running the Server

Start the MCP server:

uv run -- ollama_server.py

The server will be available at http://localhost:8000/sse.

Using the Command-line Client

uv run -- updated_client.py http://localhost:8000/sse https://en.wikipedia.org/wiki/Python_(programming_language)

Using the Streamlit Interface

Start the Streamlit application:

uv run -- streamlit run streamlit_new.py

Then open your browser at the URL provided by Streamlit (typically http://localhost:8501) and:

  1. Enter the MCP Server URL (default: http://localhost:8000/sse)
  2. Enter a Wikipedia article URL
  3. Click "Fetch and Summarize Article"

Components

ollama_server.py

Implements the MCP server with a tool for summarizing Wikipedia articles. It fetches article content, converts it to markdown, and uses Ollama to generate a summary.

updated_client.py

A command-line client that connects to the MCP server and calls the summarize_wikipedia_article tool.

streamlit_new.py

A Streamlit-based web interface that provides a user-friendly way to interact with the MCP server.

License

MIT License

Copyright (c) 2025

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
Amap Maps高德地图官方 MCP Server
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
Playwright McpPlaywright MCP server
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
WindsurfThe new purpose-built IDE to harness magic
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
CursorThe AI Code Editor
ChatWiseThe second fastest AI chatbot™
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
Tavily Mcp
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Serper MCP ServerA Serper MCP Server
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
DeepChatYour AI Partner on Desktop