ForexFactory MCP Server
📅 ForexFactory MCP-Server
Ein MCP-Server (Model Context Protocol), der ForexFactory-Wirtschaftskalenderdaten als Ressourcen und Tools bereitstellt.
Entwickelt für den Einsatz in agentenbasierten Workflows, LLMs und Trading-Assistenten.
🚀 Funktionen
✅ Abrufen von Wirtschaftskalender-Ereignissen nach Zeitraum (
today,this_week,customusw.)✅ Zugriff über MCP-Ressourcen (für abonnementartigen Zugriff)
✅ Zugriff über MCP-Tools (direkte Aufrufe von Clients/Agenten)
✅ JSON-basierte Antworten für einfache Integration
⚡ Integrierbar mit LangChain, n8n oder jedem MCP-kompatiblen Client
📌 Entwicklungsstatus
Dieses Projekt befindet sich in aktiver Entwicklung. Die Kernfunktionalität ist stabil (Abrufen von ForexFactory-Wirtschaftskalender-Ereignissen über MCP-Tools und -Ressourcen), aber wir arbeiten noch an:
Erweiterung der Funktionen (Prompts, Bereitstellungsoptionen)
Verbesserung der Dokumentation und Beispiele
Wir freuen uns über Feedback und Beiträge, während wir das Ökosystem weiter ausbauen.
forexfactory-mcp/
│── src/forexfactory_mcp/ # Main package
│ ├── models/ # Schemas & enums
│ ├── services/ # Scraper + data normalization
│ ├── tools/ # MCP tool definitions
│ ├── resources/ # MCP resource definitions
│ ├── prompts/ # Prompt templates (optional MCP prompts)
│ ├── utils/ # Shared helpers & config
│ └── server.py # FastMCP server entrypoint
│
│── examples/ # Example clients
│── tests/ # Unit tests
│── .env.example # Copy to .env for config
│── pyproject.toml # Dependencies & metadata
│── README.md # Documentation
│── .python-version # Python version pin (3.12)(Siehe Repository für vollständige Details – dies ist ein grober Überblick für Mitwirkende.)
Related MCP server: Google-Calendar Universal MCP
🔧 Installation
Anforderungen
Python 3.12+
uv oder pip
Ein modernes Terminal oder ein MCP-kompatibler Client
Einrichtung
# Clone repo
git clone https://github.com/kjpou1/forexfactory-mcp.git
cd forexfactory-mcp
# Install dependencies
uv sync # or: pip install -e .
# Install Playwright browser binaries
uv run playwright install chromium
# or, if using pip/venv:
playwright install chromium
# Copy example environment and adjust if needed
cp .env.example .env▶️ Verwendung
⚡ Schnellstart
Starten Sie den Server mit den Standardeinstellungen (stdio-Transport):
uv run ffcal-serverAusführung mit HTTP-Transport:
uv run ffcal-server --transport http --host 0.0.0.0 --port 8080SSE-Transport (⚠️ veraltet)
uv run ffcal-server --transport sse --host 127.0.0.1 --port 8001Standardwerte für Umgebungsvariablen
MCP_TRANSPORT=http
MCP_HOST=0.0.0.0
MCP_PORT=8080🏷️ Namespace
Standard-Namespace:
ffcalÜberschreiben via .env:
NAMESPACE=ffcal📦 Ressourcen
Name | Pfad | Beschreibung |
|
| Heutige Ereignisse |
|
| Alle Ereignisse diese Woche |
|
| Benutzerdefinierter Datumsbereich |
🛠️ Tools
Name | Typ | Beschreibung |
| Tool | Ereignisse für einen bestimmten Zeitraum abrufen |
Unterstützte Werte:
today, tomorrow, yesterday, this_week, next_week, last_week, this_month, next_month, last_month, custom📝 Prompts
Name | Beschreibung |
| Vorbereitungsnotiz für Trader für heute |
| Wöchentliche Zusammenfassung der Makro-Ereignisse |
| Wöchentliche Heatmap für Ereignisrisiken |
| Szenario-Karte für spezifische Ereignisse |
🧩 Prompt-Stile
Alle Prompts unterstützen einen style-Parameter zur Steuerung der Formatierung.
Standard:
style: str = "bullet points"Siehe die Output Style Reference für verfügbare Formate.
💻 Client-Beispiele
Beispiel: Verwendung der MCP-CLI
mcp call ffcal:get_calendar_events time_period=this_weekBeispiel: Verwendung in Python
from mcp.client.session import Session
async with Session("ws://localhost:8000") as session:
result = await session.call_tool("ffcal:get_calendar_events", {"time_period": "today"})
print(result)Beispiel: LangChain-Integration
from langchain.agents import initialize_agent
from langchain_mcp import MCPToolkit
toolkit = MCPToolkit.from_server_url("ws://localhost:8000", namespace="ffcal")
agent = initialize_agent(toolkit.tools)
response = agent.run("What are today's USD-related high impact events?")
print(response)📘 Referenz zur Client-Konfiguration
Beinhaltet:
✅ Beispielkonfigurationen für Claude Desktop (lokal + Docker)
🐳 Docker-Build und -Einrichtung
🧩 VS Code MCP-Integration (zukünftig)
🧪 Test- und Fehlerbehebungs-Checkliste
🔍 Inspector-Einrichtung für visuelles Debugging
⚙️ Konfiguration
Variable | Standard | Beschreibung |
|
| Namespace-Präfix |
|
| Transporttyp ( |
|
| Host für HTTP/SSE |
|
| Port für HTTP/SSE |
|
| Playwright-Timeout |
| System-Lokal | Zeitzonen-Überschreibung |
Beispiel .env
MCP_TRANSPORT=http
MCP_HOST=0.0.0.0
MCP_PORT=8080
NAMESPACE=ffcal🐳 Docker-Integration
Unterstützt sowohl stdio (Standard) als auch HTTP/SSE.
docker compose build
docker compose up forexfactory_mcpFührt den MCP-Server aus und stellt ihn auf Port 8000 bereit.
Ziel | Beschreibung |
| Docker-Image bauen |
| Server im HTTP-Modus ausführen |
| Im stdio-Modus ausführen |
| Über MCP Inspector untersuchen |
| Container stoppen |
🐍 1. uv oder Abhängigkeitsinstallation schlägt fehl
Ausführen:
docker compose build --no-cache forexfactory_mcp⚡ 2. Server beendet sich sofort
Wechseln zu:
make run-http🌐 3. Port wird bereits verwendet
Port ändern:
docker compose run --rm -e MCP_PORT=8080 forexfactory_mcp🔐 4. Browser schlägt fehl
Chromium installieren:
docker compose run forexfactory_mcp playwright install chromium🧪 Tests
pytest -v📊 Roadmap
[ ] Ereignisfilter nach Währung und Auswirkung
[ ] Historische Daten nachladen
[ ] MCP-Prompt-Erweiterungen
[ ] Cloud-fähige Bereitstellung
🤝 Mitwirken
Forke das Repo
Erstelle einen Feature-Branch
Committe mit einer klaren Nachricht
Pushe und öffne einen PR
📜 Lizenz
MIT-Lizenz – siehe LICENSE für Details.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceProvides access to macroeconomic indicators, FX rates, COT data, commodities, and release calendars through the FXMacroData API for AI agents.MIT
- AlicenseNot gradedqualityDmaintenanceEnables interaction with Google Calendar through a unified MCP API for managing events, calendars, and related tools.MIT
- AlicenseBqualityDmaintenanceIntegrates the FRED (Federal Reserve Economic Data) API with MCP, enabling AI assistants to retrieve economic time series data such as GDP, inflation, and interest rates.1MIT
- AlicenseNot gradedqualityDmaintenanceProvides 10 financial data tools (market data, economic indicators, news, insider trades, and calendars) via a single MCP layer, enabling any MCP-compatible LLM to access diverse financial data through a unified interface.MIT
Related MCP Connectors
Real SEC, 13F, insider, congress & macro data your AI agent can cite. Hosted MCP, 24 tools.
The financial MCP for AI agents - 90+ financial tables, SEC filings, signals, alt-data.
Calendar API for AI agents: events, availability, Google/Microsoft setup, scheduling, and iCal.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/kjpou1/forexfactory-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server