MCP.so
ログイン

MCP Python Server — API Wrapper

@cdryampi

基本情報

カテゴリ

開発者ツール

トランスポート

stdio

作者

cdryampi

MCP Python Server — API Wrapper について

MCP de mi perfil

MCP Python Server — API Wrapper の設定

以下の設定を使って、このサーバーを MCP 対応クライアントに追加してください。

{
  "mcpServers": {
    "mcp-cdryampi": {
      "command": "uv",
      "args": [
        "init",
        "mcp-api-server"
      ]
    }
  }
}

MCP Python Server — API Wrapper のツール

ツール一覧はまだありません

この掲載には表示できるツール一覧がまだありません。サーバーにツールがないという意味ではありません。対応機能はプロジェクトのドキュメントをご確認ください。

ツールは README から自動的に抽出されます。メンテナーは ## Tools という見出しの下に記載することで、このタブに反映できます。

概要

What is MCP Python Server — API Wrapper?

It is a Python MCP server that exposes a tool to query an external HTTP API. Designed for use with Claude Desktop or ChatGPT Desktop that support the Model Context Protocol.

How to use MCP Python Server — API Wrapper?

Install dependencies (pip install "mcp[cli]" or uv add "mcp[cli]"), then run mcp dev server.py for development or mcp run server.py for production. Integrate with Claude Desktop by adding an entry in claude.json pointing to the server script. Once configured, you can ask the model to use the consultar_api tool with a parameter.

Key features of MCP Python Server — API Wrapper

  • Exposes an external API query as an MCP tool
  • Built with FastMCP and httpx
  • Direct integration via claude.json
  • Supports optional environment variables (API_KEY, API_URL)

Use cases of MCP Python Server — API Wrapper

  • Let an AI assistant fetch live data from a public API
  • Build a demo that queries a backend and returns results in chat
  • Extend with additional tools (e.g., translation)

よくある質問

1

What are the dependencies?

Python 3.9+ and the `mcp[cli]` package. Optionally `httpx` for HTTP requests (included in the example).

2

How do I set the API endpoint?

Define `API_URL` and optionally `API_KEY` in a `.env` file, then load it with `mcp install server.py -f .env`.

3

What transport does the server use?

The server uses the Model Context Protocol default transport (stdio). It is configured via `mcp run` or the `claude.json` command line.

4

Can I add more tools?

Yes. The README shows an example `traducir` tool using the `@mcp.tool()` decorator.

コメント

「開発者ツール」の他のコンテンツ