MyMCP Prompt

MyMCP Prompt

MyMCP Prompt is a tool for generating Model Context Protocol (MCP) servers from natural language descriptions. This MVP uses the Google Gemini API to convert user descriptions into functional Python MCP servers with corresponding JSON configurations.

AlexJ-StL

Developer Tools
Visit Server

README

MyMCP Prompt

Description

MyMCP Prompt is a tool for generating Model Context Protocol (MCP) servers from natural language descriptions. This MVP uses the Google Gemini API to convert user descriptions into functional Python MCP servers with corresponding JSON configurations.

Project Structure

The application consists of:

  • Flask Backend (Root Directory):
    • app.py: Main Flask application setup (CORS, blueprint registration).
    • api.py: Contains the /api/generate-mcp endpoint which interacts with the Google Gemini API to generate server code and configuration.
    • requirements.txt: Lists Python dependencies.
  • React Frontend (/frontend-vite Directory):
    • Provides a web interface (frontend-vite/src/App.js) for users to input server descriptions.
    • Displays the generated Python code and JSON configuration.
    • Shows the paths where the generated files are saved.

Setup

  1. Clone the repository:

    git clone https://github.com/AlexJ-StL/mymcp
    cd mymcp
    
  2. Backend Setup (Root Directory):

    Create and activate a virtual environment (using uv is recommended):

    # In the project root directory (mymcp)
    uv venv
    source .venv/Scripts/activate  # On Windows
    # source .venv/bin/activate    # On macOS/Linux
    

    Install Python dependencies:

    uv pip install -r requirements.txt
    
  3. Frontend Setup:

    Navigate to the frontend-vite directory:

    cd frontend-vite
    

    Install Node.js dependencies:

    npm install
    

    Navigate back to the root directory:

    cd ..
    
  4. Set the Gemini API Key:

    Important: Obtain a Google Gemini API key and set it as an environment variable named GEMINI_API_KEY. Do not commit your API key to the repository.

    Windows (Command Prompt):

    set GEMINI_API_KEY=your_api_key
    

    Windows (PowerShell):

    $env:GEMINI_API_KEY="your_api_key"
    

    (Note: This sets the variable only for the current session. For persistent setting, use setx or system environment variables settings.)

    macOS / Linux:

    Add the following line to your .bashrc, .zshrc, or other shell configuration file:

    export GEMINI_API_KEY="your_api_key"
    

    Then, source the file (or open a new terminal):

    source ~/.bashrc  # Or ~/.zshrc, etc.
    

Usage

  1. Start the Backend Server:

    • Ensure your virtual environment is activated in the root directory.
    • Make sure the GEMINI_API_KEY environment variable is set.
    • Run the Flask app:
      # In the project root directory (mymcp)
      flask run
      
    • The backend will be available at http://127.0.0.1:5000.
  2. Start the Frontend Development Server:

    • Open a new terminal.
    • Navigate to the frontend-vite directory:
      cd frontend-vite
      
    • Run the React app:
      npm run dev
      
    • The frontend will open automatically in your browser, usually at http://localhost:5173.
  3. Use the Application:

    • Open http://localhost:5173 in your browser.
    • Enter a description for the MCP server you want to generate.
    • Click "Place Your Order".
    • The generated Python code and JSON configuration will be displayed, and the files will be saved to the generated_server directory (or a directory chosen by the LLM).

Change Log

  • v0.1.0 (MVP): Initial release with basic MCP server generation using Google Gemini. Backend in root, frontend in /frontend.
  • v0.2.0 (Vite Frontend & UI Redesign): Migrated frontend from Create React App to Vite for improved performance, reduced vulnerabilities, and better developer experience. Implemented a new French café-themed UI. Removed the output directory input from the frontend, allowing the backend to choose the output directory. Updated the backend API to handle requests without an output directory.

Future Features

  • Integration with additional LLMs (OpenRouter, LiteLLM, OpenAI, Anthropic, SombaNova, Cerebras, LM Studio, Ollama, Groq).
  • Support for generating tools/function calls within the MCP server.
  • Support for generating agent prompts.
  • Improved error handling and user feedback.
  • More sophisticated MCP server code generation (e.g., using templates, better structure).
  • UI enhancements.
  • Unit tests for backend and frontend.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
MCP Package Docs Server

MCP Package Docs Server

Facilitates LLMs to efficiently access and fetch structured documentation for packages in Go, Python, and NPM, enhancing software development with multi-language support and performance optimization.

Featured
Local
TypeScript
Claude Code MCP

Claude Code MCP

An implementation of Claude Code as a Model Context Protocol server that enables using Claude's software engineering capabilities (code generation, editing, reviewing, and file operations) through the standardized MCP interface.

Featured
Local
JavaScript
@kazuph/mcp-taskmanager

@kazuph/mcp-taskmanager

Model Context Protocol server for Task Management. This allows Claude Desktop (or any MCP client) to manage and execute tasks in a queue-based system.

Featured
Local
JavaScript
Linear MCP Server

Linear MCP Server

Enables interaction with Linear's API for managing issues, teams, and projects programmatically through the Model Context Protocol.

Featured
JavaScript
mermaid-mcp-server

mermaid-mcp-server

A Model Context Protocol (MCP) server that converts Mermaid diagrams to PNG images.

Featured
JavaScript
Jira-Context-MCP

Jira-Context-MCP

MCP server to provide Jira Tickets information to AI coding agents like Cursor

Featured
TypeScript
Linear MCP Server

Linear MCP Server

A Model Context Protocol server that integrates with Linear's issue tracking system, allowing LLMs to create, update, search, and comment on Linear issues through natural language interactions.

Featured
JavaScript
Sequential Thinking MCP Server

Sequential Thinking MCP Server

This server facilitates structured problem-solving by breaking down complex issues into sequential steps, supporting revisions, and enabling multiple solution paths through full MCP integration.

Featured
Python