Most Popular API MCP Server
MCP-Server
Dieses Projekt ist ein MCP-Server (Multi-Agent Conversation Protocol) für die angegebene OpenAPI-URL – https://api.apis.guru/v2/specs/nytimes.com/most\_popular\_api/2.0.0/openapi.json , automatisch generiert mit dem MCP-Builder von AG2.
Voraussetzungen
Python 3.9+
Pip und UV
Related MCP server: Times Newswire API MCP Server
Installation
Klonen Sie das Repository:
git clone <repository-url> cd mcp-serverAbhängigkeiten installieren: Das Skript .devcontainer/setup.sh übernimmt die Installation von Abhängigkeiten mit
pip install -e ".[dev]". Wenn Sie den Dev-Container nicht verwenden, können Sie diesen Befehl manuell ausführen.pip install -e ".[dev]"Alternativ können Sie
uvverwenden:uv pip install --editable ".[dev]"
Entwicklung
Dieses Projekt verwendet ruff zum Lint-Test und Formatieren, mypy zur statischen Typprüfung und pytest zum Testen.
Lintierung und Formatierung
So prüfen Sie, ob Probleme mit der Flusenbildung vorliegen:
ruff checkSo formatieren Sie den Code:
ruff formatDiese Befehle sind auch über das Skript scripts/lint.sh verfügbar.
Statische Analyse
So führen Sie eine statische Analyse aus (mypy, bandit, semgrep):
./scripts/static-analysis.shDieses Skript ist auch als Pre-Commit-Hook in .pre-commit-config.yaml konfiguriert.
Ausführen von Tests
So führen Sie Tests mit Abdeckung durch:
./scripts/test.shDadurch wird pytest ausgeführt und ein Abdeckungsbericht generiert. Für einen kombinierten Bericht und eine Bereinigung können Sie Folgendes verwenden:
./scripts/test-cov.shPre-Commit-Hooks
Dieses Projekt verwendet Pre-Commit-Hooks, die in .pre-commit-config.yaml definiert sind. So installieren Sie die Hooks:
pre-commit installDie Hooks werden vor jedem Commit automatisch ausgeführt.
Ausführen des Servers
Der MCP-Server kann mit dem Skript mcp_server/main.py gestartet werden. Er unterstützt verschiedene Transportmodi (z. B. stdio , sse ).
So starten Sie den Server (z. B. im Standardmodus):
python mcp_server/main.py stdioDer Server kann mithilfe von Umgebungsvariablen konfiguriert werden:
CONFIG_PATH: Pfad zu einer JSON-Konfigurationsdatei (z. B. mcp_server/mcp_config.json ).CONFIG: Eine JSON-Zeichenfolge, die die Konfiguration enthält.SECURITY: Umgebungsvariablen für Sicherheitsparameter (z. B. API-Schlüssel).
Weitere Informationen zum Laden finden Sie im Block if __name__ == "__main__": in mcp_server/main.py .
Die Datei tests/test_mcp_server.py zeigt, wie Sie den Server zum Testen programmgesteuert starten und mit ihm interagieren.
Erstellen und Veröffentlichen
Dieses Projekt verwendet Hatch zum Erstellen und Veröffentlichen. So erstellen Sie das Projekt:
hatch buildSo veröffentlichen Sie das Projekt:
hatch publishDiese Befehle sind auch über das Skript scripts/publish.sh verfügbar.
This server cannot be deployed
Maintenance
Related MCP Connectors
Agent-native MCP server over the public saagarpatel.dev corpus. Read-only, stateless.
Nifty's MCP server — exposes tasks, projects, messages, and files as tools for AI agents.
The Mercado Pago MCP Server implements the Model Context Protocol to provide AI agents and LLMs with access to Mercado Pago's APIs and tools within compatible development environments. It acts as an intermediary that translates Mercado Pago resources into executable functions (tools) that AI applications can invoke to perform actions and automate flows. The server simplifies integration, enables using documentation to implement or improve code, and optimizes operations through natural language interactions without manual implementations.
Remote MCP server for The Colony — a social network for AI agents (posts, DMs, search, marketplace).
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceA Multi-Agent Conversation Protocol Server that provides a natural language interface to the U.S. Department of Health & Human Services (HHS) Media Services API, allowing users to access health-related data and media resources through conversational AI.-
- FlicenseNot gradedqualityDmaintenanceAn MCP server that provides access to the New York Times Newswire API, allowing agents to retrieve real-time news updates and content from the New York Times.-
- FlicenseNot gradedqualityDmaintenanceMulti-Agent Conversation Protocol server for accessing NASA's Astronomy Picture of the Day (APOD) API, allowing users to retrieve space imagery and related information through natural language interactions.-
- AlicenseAqualityCmaintenanceMCP server for Hacker News that enables AI agents to search stories, read comments, and track tech trends via the public Hacker News API and Algolia HN Search.1016 npm4MIT