Track MCP LogoTrack MCP
Track MCP LogoTrack MCP

The world's largest repository of Model Context Protocol servers. Discover, explore, and submit MCP tools.

Product

  • Categories
  • Top MCP
  • New & Updated
  • Submit MCP

Company

  • About

Legal

  • Privacy Policy
  • Terms of Service
  • Cookie Policy

© 2026 TrackMCP. All rights reserved.

Built with ❤️ by Krishna Goyal

    Mcp Openai Complete

    MCP server for OpenAI text completion

    0 stars
    JavaScript
    Updated Mar 21, 2025

    Table of Contents

    • Features
    • Installation
    • Configuration
    • Usage
    • Docker Usage
    • Building the Docker Image
    • Running the Container
    • Parameters for the "complete" tool
    • Development
    • License

    Table of Contents

    • Features
    • Installation
    • Configuration
    • Usage
    • Docker Usage
    • Building the Docker Image
    • Running the Container
    • Parameters for the "complete" tool
    • Development
    • License

    Documentation

    OpenAI Complete MCP Server

    An MCP (Model Context Protocol) server that provides a clean interface for LLMs to use text completion capabilities through the MCP protocol. This server acts as a bridge between an LLM client and any OpenAI's compatible API. The primary use case is for base models, as the server does not provide support for chat completions.

    Features

    • Provides a single tool named "complete" for generating text completions
    • Properly handles asynchronous processing to avoid blocking
    • Implements timeout handling with graceful fallbacks
    • Supports cancellation of ongoing requests

    Installation

    bash
    # Clone the repository
    git clone 
    cd mcp-openai-complete
    
    # Install dependencies
    pnpm install
    
    # Build the project
    pnpm run build

    Configuration

    The following environment variables are required:

    code
    OPENAI_API_KEY=your-hyperbolic-api-key
    OPENAI_API_BASE=https://api.hyperbolic.xyz/v1
    OPENAI_MODEL=meta-llama/Meta-Llama-3.1-405B

    Usage

    Start the server:

    bash
    pnpm start

    This will start the server on stdio, making it available for MCP clients to communicate with.

    Docker Usage

    Building the Docker Image

    bash
    docker build -t mcp-openai-complete .

    Running the Container

    bash
    # Run with environment variables
    docker run -it --rm \
      -e OPENAI_API_KEY="your-api-key" \
      -e OPENAI_MODEL="gpt-3.5-turbo-instruct" \
      mcp-openai-complete

    You can also use a .env file:

    bash
    # Run with .env file
    docker run -it --rm \
      --env-file .env \
      mcp-openai-complete

    Parameters for the "complete" tool

    • prompt (string, required): The text prompt to complete
    • max_tokens (integer, optional): Maximum tokens to generate, default: 150
    • temperature (number, optional): Controls randomness (0-1), default: 0.7
    • top_p (number, optional): Controls diversity via nucleus sampling, default: 1.0
    • frequency_penalty (number, optional): Decreases repetition of token sequences, default: 0.0
    • presence_penalty (number, optional): Increases likelihood of talking about new topics, default: 0.0

    Development

    For development with auto-reloading:

    bash
    npm run dev

    License

    MIT

    Similar MCP

    Based on tags & features

    • WA

      Waha Mcp

      JavaScript00
    • WI

      Wizzy Mcp Tmdb

      JavaScript00
    • RI

      Rijksmuseum Mcp

      JavaScript·
      59
    • MC

      Mcp Server Playwright

      JavaScript·
      262

    Trending MCP

    Most active this week

    • PL

      Playwright Mcp

      TypeScript·
      22.1k
    • SE

      Serena

      Python·
      14.5k
    • MC

      Mcp Playwright

      TypeScript·
      4.9k
    • MC

      Mcp Server Cloudflare

      TypeScript·
      3.0k
    View All MCP Servers

    Similar MCP

    Based on tags & features

    • WA

      Waha Mcp

      JavaScript00
    • WI

      Wizzy Mcp Tmdb

      JavaScript00
    • RI

      Rijksmuseum Mcp

      JavaScript·
      59
    • MC

      Mcp Server Playwright

      JavaScript·
      262

    Trending MCP

    Most active this week

    • PL

      Playwright Mcp

      TypeScript·
      22.1k
    • SE

      Serena

      Python·
      14.5k
    • MC

      Mcp Playwright

      TypeScript·
      4.9k
    • MC

      Mcp Server Cloudflare

      TypeScript·
      3.0k