Metadata-Version: 2.4
Name: restapi-mcp-server
Version: 0.0.1
Summary: RestAPI MCP Server - SSE
Requires-Python: >=3.11
Description-Content-Type: text/markdown
Requires-Dist: fastapi>=0.128.0
Requires-Dist: httpx>=0.28.1
Requires-Dist: jq>=1.10.0
Requires-Dist: mcp>=1.25.0
Requires-Dist: pandas>=2.3.3
Requires-Dist: pydantic>=2.12.5
Requires-Dist: python-multipart>=0.0.20
Requires-Dist: pyyaml>=6.0.3
Requires-Dist: uvicorn>=0.40.0

# 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
  ```bash
  source start.sh
  ```

## Claud Desktop
- Configuration details for Claud Desktop
  ```json
  {
    "mcpServers": {
      "restapi_mcp_server":{
        "command": "npx",
        "args": ["mcp-remote","<<IP:765/sse>>","--allow-http"]
      }
    }
  }
  ```
- Cline
  ```json
  "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](https://api.star-history.com/svg?repos=rahgadda/restapi_mcp_server=Date)](https://star-history.com/#rahgadda/restapi_mcp_server&Date)

## Appendix
### UV
```bash
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
- [UV Overview](https://www.youtube.com/watch?v=WKc2BdgmGZE)
