drio
Open app

FastAPI Hello World Application

Source

A test repository created using the GitHub MCP server

Catalog onlyCatalog onlySTDIO

Overview

The FastAPI Hello World Application is a simple API built using FastAPI that provides basic endpoints for greeting users and integrating with OpenAI's GPT-4o model.

To use the application, clone the repository, set up the environment, and run the application either locally or using Docker. Access the API endpoints via a web browser or curl commands.

  • 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
  1. Providing a simple API for greeting users.
  2. Demonstrating how to integrate with OpenAI's GPT-4o model.
  3. Serving as a template for building more complex FastAPI applications.

Add to your AI client

Use these steps to connect FastAPI Hello World Application in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.

Cursor

Add this to your .cursor/mcp.json file in your project root, then restart Cursor.

.cursor/mcp.json

{
  "mcpServers": {
    "mcp-test-repo-xxradar": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-test-repo-xxradar"
      ]
    }
  }
}

Claude Desktop

Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "mcp-test-repo-xxradar": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-test-repo-xxradar"
      ]
    }
  }
}

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

{
  "mcpServers": {
    "mcp-test-repo-xxradar": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-test-repo-xxradar"
      ]
    }
  }
}

VS Code (Copilot)

Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.

.vscode/mcp.json

{
  "servers": {
    "mcp-test-repo-xxradar": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-test-repo-xxradar"
      ]
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "mcp-test-repo-xxradar": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-test-repo-xxradar"
      ]
    }
  }
}

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "mcp-test-repo-xxradar": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-test-repo-xxradar"
      ]
    }
  }
}

FAQ

What programming language is used?

The application is built using Python.

Do I need an OpenAI API key?

Yes, an OpenAI API key is required to use the `/openai` endpoint.

How can I run the application?

You can run it locally with Python or in a Docker container.