FastAPI Hello World Application

by xxradar

327 downloads
Not rated
GitHub

About

A test repository created using the GitHub MCP server

Details

Author
xxradar
Downloads
327
Categories
Developer Tools, API

- Root endpoint returning a Hello World message
- Dynamic greeting endpoint with a name parameter
- OpenAI GPT-4o integration for advanced chat completions
- Automatic API documentation (Swagger UI and ReDoc)
- MCP SSE support for Model Context Protocol
- Optional Docker containerized deployment

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name FastAPI Hello World Application
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

Clone the repository, create a Python virtual environment, install dependencies from requirements.txt, then run with uvicorn main:app --reload or python main.py. Alternatively, build a Docker image and run the container on port 8000. Access endpoints via curl or browser, or connect to the MCP Inspector using npx @modelcontextprotocol/inspector.

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "fastapi hello world application": {
            "mcp-fastapi-learning": {
                "command": "python",
                "args": [
                    "-m",
                    "venv",
                    "venv"
                ]
            }
        }
    }
}

McpServers

{
    "mcp-fastapi-learning": {
        "command": "python",
        "args": [
            "-m",
            "venv",
            "venv"
        ]
    }
}

FastAPI Hello World Application

A simple Hello World API built with FastAPI and MCP SSE support.

Features

- Root endpoint that returns a Hello World message
- Dynamic greeting endpoint that takes a name parameter
- OpenAI integration with GPT-4o for advanced AI-powered chat completions
- Automatic API documentation with Swagger UI

Prerequisites

- Python 3.7+ (for local setup)
- pip (Python package installer)
- OpenAI API key (for the /openai endpoint)
- Docker (optional, for containerized setup)

Setup Instructions

You can run this application either locally or using Docker.

Local Setup

1. Clone the repository

git clone https://github.com/xxradar/mcp-test-repo.git
cd mcp-test-repo

2. Create a virtual environment (optional but recommended)

```bash

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.