MCP

MCP

3.5

A simple app demonstrating Model Context Protocol (MCP) with FastAPI and Gradio.

The Basic MCP Application is a project that showcases how the Model Context Protocol (MCP) can be integrated with FastAPI for the backend and Gradio for the frontend. This application allows users to interact with AI models through a user-friendly interface. The backend is powered by FastAPI and the MCP Python SDK, while the frontend utilizes Gradio for its interactive components. The application also integrates with the Google Gemini API for AI functionalities. Despite some known issues with the citation tool and Semantic Scholar API rate limitations, the project offers a straightforward setup process, especially when using the 'uv' package installer for faster dependency management.

Features

  • {'name': 'Scientific Paper Search', 'description': 'Utilizes Semantic Scholar for searching scientific papers.'}
  • {'name': 'Paper Analysis Tools', 'description': 'Provides tools for analyzing papers, though with some reliability issues.'}
  • {'name': 'Simple Chat Interface', 'description': 'Offers a user-friendly chat interface for interacting with AI models.'}
  • {'name': 'Easy Setup Process', 'description': 'Facilitates a straightforward setup process with detailed instructions.'}

Usage with Different Platforms

FastAPI and Gradio

bash
git clone https://github.com/yourusername/basic-mcp-app.git
cd basic-mcp-app
python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate
pip install -r requirements.txt
python run.py