MCP

MCP

0

This project establishes an MCP server in Python to function as an API wrapper for querying external services. It integrates with platforms like Claude/Desktop, offering seamless connectivity and usage for HTTP requests via MCP.

MCP Python Server — API Wrapper

  • Creates an MCP server in Python to expose a tool for querying an external API.
  • Compatible with Claude Desktop or ChatGPT Desktop supporting Model Context Protocol (MCP).

Features

  • Exposes a tool via MCP
  • HTTP query to an external API
  • Direct integration with Claude/Desktop via claude.json

Requirements

  • Python 3.9+
  • mcp[cli] (installable via pip or uv)
  • Claude or ChatGPT Desktop (with MCP support)

Installation

  • Install with pip: pip install "mcp[cli]"
  • Recommended with uv: uv init mcp-api-server

Quickstart

  • Create the server: Define server.py to interact with external APIs using MCP.
  • Run locally: mcp dev server.py
  • Production mode: mcp run server.py

Integration with Claude/Desktop

  • Place claude.json in the configuration folder of Claude/Desktop.