Skip to main content

RestAPI MCP Server - SSE

Project description

RestAPI MCP Server

Overview

  • This project will install MCP - Model Context Protocol Server, that provides configured REST API's as context to LLM's.
  • Using this we can enable LLMs to do RestAPI's using prompts.
  • Currently we support HTTP API Call's GET/PUT/POST/PATCH/DELETE.

Installation

  • Install package
    source start.sh
    

Claud Desktop

  • Configuration details for Claud Desktop
    {
      "mcpServers": {
        "restapi_mcp_server":{
          "command": "npx",
          "args": ["mcp-remote","<<IP:765/sse>>","--allow-http"]
        }
      }
    }
    
  • Cline
    "DEMO": {
        "autoApprove": [
          "createSession",
          "createEnviromentVariables",
          "listAllEnviromentVariables",
          "listSpecificEnvironmentVariable",
          "createRestAPICall"
        ],
        "disabled": false,
        "timeout": 60,
        "type": "stdio",
        "command": "npx",
        "args": [
          "mcp-remote",
          "http://<<IP>>:8765/sse",
          "--allow-http"
        ]
      }
    

Configuration

  • List of available environment variables
    • DEBUG: Enable debug logging (optional default is False)

Contributing

Contributions are welcome.
Please feel free to submit a Pull Request.

License

This project is licensed under the terms of the MIT license.

Github Stars

Star History Chart

Appendix

UV

mkdir -m777 restapi_mcp_server
cd restapi_mcp_server
uv init
uv add mcp[cli] pydantic python-dotenv requests
uv add --dev twine setuptools
uv sync
uv run restapi_mcp_server
uv build
pip install --force-reinstall --no-deps .\dist\restapi_mcp_server-*fileversion*.whl
export TWINE_USERNAME="rahgadda"
export TWINE_USERNAME="<<API Key>>"
uv run twine upload --verbose dist/*

Reference

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

restapi_mcp_server-0.0.1.tar.gz (52.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

restapi_mcp_server-0.0.1-py3-none-any.whl (73.5 kB view details)

Uploaded Python 3

File details

Details for the file restapi_mcp_server-0.0.1.tar.gz.

File metadata

  • Download URL: restapi_mcp_server-0.0.1.tar.gz
  • Upload date:
  • Size: 52.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.12

File hashes

Hashes for restapi_mcp_server-0.0.1.tar.gz
Algorithm Hash digest
SHA256 aef805026aa0cc117a59d0e7510f9737a1549ab1dc8de7943157afab4fbeb3d5
MD5 29179e63106315444349d567439b26b9
BLAKE2b-256 8a64343ba71b52fec06608e354b223286d5569fd3653038f0ee259a00c0148b3

See more details on using hashes here.

File details

Details for the file restapi_mcp_server-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for restapi_mcp_server-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c79a92940e6ad766ad30da58a4d01c4eeef3a50ba8580d478b0d4f5fafd88cc5
MD5 8e965f3d0360c288c96766405ae5c553
BLAKE2b-256 0052ed579c66267954a04cbddb05430af073f85d95f16a8278dfa7efc94fdedf

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page