Back to Home
harshrajsinha icon

rest_api_mcp_tools_generator

by harshrajsinha

Overview

Generates Model Context Protocol (MCP) servers from REST API specifications (Swagger/OpenAPI) to enable AI clients like Claude Desktop to interact with external APIs as tools.

Installation

Run Command
python manage.py runserver

Environment Variables

  • REDIS_HOST
  • REDIS_PORT
  • REDIS_DB
  • OPENAI_API_KEY
  • AZURE_OPENAI_API_KEY
  • AZURE_OPENAI_ENDPOINT
  • AZURE_OPENAI_API_VERSION
  • AZURE_OPENAI_DEPLOYMENT_NAME
  • LLM_SERVICE_ENABLED

Security Notes

The project dynamically loads and executes Python code for generated MCP servers and uses subprocess calls for package creation/installation. While necessary for its core functionality, this introduces risks if the input REST API specifications are untrusted or malicious, potentially leading to code injection. Default Django admin user credentials (`admin`/`admin@example.com`) are created during initialization, which must be changed for production environments. Sample API keys are present in example configurations but are intended for user modification.

Similar Servers

Stats

Interest Score0
Security Score6
Cost ClassMedium
Avg Tokens1000
Stars0
Forks0
Last Update2025-11-19

Tags

REST APIMCP ServerClaude DesktopAPI GatewayTool Generation