mcp-server-typescript

DevMatin/mcp-server-typescript

3.1

If you are the rightful owner of mcp-server-typescript and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

A modern MCP (Model Context Protocol) server for DataForSEO APIs, developed in TypeScript.

MCP Server TypeScript

Ein moderner MCP (Model Context Protocol) Server fΓΌr DataForSEO APIs, entwickelt in TypeScript.

πŸ“ Projektstruktur

mcp-server-typescript/
β”œβ”€β”€ πŸ“ src/                          # Quellcode
β”‚   β”œβ”€β”€ πŸ“ core/                     # KernfunktionalitΓ€ten
β”‚   β”‚   β”œβ”€β”€ πŸ“ client/              # API-Client
β”‚   β”‚   β”œβ”€β”€ πŸ“ config/              # Konfiguration
β”‚   β”‚   β”œβ”€β”€ πŸ“ modules/             # API-Module
β”‚   β”‚   └── πŸ“ utils/               # Hilfsfunktionen
β”‚   β”œβ”€β”€ πŸ“ main/                    # Hauptanwendung
β”‚   └── πŸ“ worker/                  # Worker-Prozesse
β”œβ”€β”€ πŸ“ apis/                        # API-Definitionen
β”‚   β”œβ”€β”€ πŸ“ core/                    # Kern-APIs
β”‚   β”‚   β”œβ”€β”€ SERP_API.ts
β”‚   β”‚   └── On_Page_API.ts
β”‚   β”œβ”€β”€ πŸ“ analytics/               # Analytics-APIs
β”‚   β”‚   β”œβ”€β”€ Domain_Analytics_API.ts
β”‚   β”‚   β”œβ”€β”€ DataForSEO_Labs_API.ts
β”‚   β”‚   └── Business_Data_API.ts
β”‚   β”œβ”€β”€ πŸ“ content/                 # Content-APIs
β”‚   β”‚   β”œβ”€β”€ Content_Generation_API.ts
β”‚   β”‚   └── Content_Analysis_API.ts
β”‚   β”œβ”€β”€ πŸ“ commerce/                # Commerce-APIs
β”‚   β”‚   β”œβ”€β”€ Merchant_API.ts
β”‚   β”‚   └── Google_Shopping_API.ts
β”‚   └── index.ts                    # API-Index
β”œβ”€β”€ πŸ“ tests/                       # Tests
β”‚   β”œβ”€β”€ test-mcp-server.js
β”‚   β”œβ”€β”€ test-tool.js
β”‚   └── simple-test.js
β”œβ”€β”€ πŸ“ examples/                    # Beispiele
β”‚   β”œβ”€β”€ api-integration-template.ts
β”‚   └── keyword-research-kaffee-erlangen.js
β”œβ”€β”€ πŸ“ docs/                        # Dokumentation
β”‚   β”œβ”€β”€ 01_SERP_API.md
β”‚   β”œβ”€β”€ 02_Keyword_Data_API.md
β”‚   β”œβ”€β”€ 03_On_Page_API.md
β”‚   β”œβ”€β”€ 04_Domain_Analytics_API.md
β”‚   β”œβ”€β”€ 05_Content_Analysis_API.md
β”‚   β”œβ”€β”€ 06_Content_Generation_API.md
β”‚   β”œβ”€β”€ 07_Business_Data_API.md
β”‚   β”œβ”€β”€ 08_Merchant_API.md
β”‚   └── 09_Google_Shopping_API.md
β”œβ”€β”€ πŸ“ config/                      # Konfigurationsdateien
β”‚   β”œβ”€β”€ tsconfig.json
β”‚   β”œβ”€β”€ tsconfig.worker.json
β”‚   └── wrangler.jsonc
β”œβ”€β”€ πŸ“ scripts/                     # Build-Scripts
β”œβ”€β”€ πŸ“ build/                       # Kompilierte Dateien
└── πŸ“„ package.json                 # Projekt-Konfiguration

πŸš€ Schnellstart

Voraussetzungen

  • Node.js 18+
  • npm oder yarn

Installation

# Repository klonen
git clone <repository-url>
cd mcp-server-typescript

# AbhΓ€ngigkeiten installieren
npm install

# Projekt kompilieren
npm run build

# Server starten
npm start

Konfiguration

  1. Erstelle eine .env Datei im Root-Verzeichnis:
DATAFORSEO_USERNAME=your_username
DATAFORSEO_PASSWORD=your_password
ENABLED_MODULES=SERP,KEYWORDS_DATA,ONPAGE,DATAFORSEO_LABS,BACKLINKS,BUSINESS_DATA,DOMAIN_ANALYTICS
DATAFORSEO_FULL_RESPONSE=false
  1. Oder verwende die Konfigurationsdatei config/field-config.example.json

πŸ“š API-Module

Core APIs

  • SERP API: Suchmaschinen-Ergebnisse abrufen
  • On-Page API: On-Page SEO-Analysen

Analytics APIs

  • Domain Analytics: Domain-basierte Analysen
  • DataForSEO Labs: Erweiterte Forschungs-Tools
  • Business Data: GeschΓ€ftsdaten und Informationen

Content APIs

  • Content Generation: KI-gestΓΌtzte Content-Erstellung
  • Content Analysis: Content-Analysen und Optimierung

Commerce APIs

  • Merchant API: E-Commerce-Daten
  • Google Shopping: Google Shopping-Integration

πŸ§ͺ Tests

# Alle Tests ausfΓΌhren
npm test

# Spezifische Tests
node tests/test-mcp-server.js
node tests/test-tool.js

πŸ“– Dokumentation

Detaillierte API-Dokumentation findest du im docs/ Verzeichnis:

πŸ”§ Entwicklung

Build-Prozess

# TypeScript kompilieren
npm run build

# Development-Modus
npm run dev

# Worker kompilieren
npm run build:worker

Code-Struktur

  • Modulare Architektur: Jede API ist in einem separaten Modul organisiert
  • TypeScript: VollstΓ€ndige Typisierung fΓΌr bessere Entwicklererfahrung
  • MCP-Protokoll: Standardkonforme Implementierung des Model Context Protocol

πŸ“„ Lizenz

Dieses Projekt ist unter der MIT-Lizenz lizenziert. Siehe fΓΌr Details.

🀝 Beitragen

  1. Fork das Repository
  2. Erstelle einen Feature-Branch (git checkout -b feature/amazing-feature)
  3. Committe deine Γ„nderungen (git commit -m 'Add some amazing feature')
  4. Push zum Branch (git push origin feature/amazing-feature)
  5. Γ–ffne einen Pull Request

πŸ“ž Support

Bei Fragen oder Problemen:

  • Erstelle ein Issue im GitHub Repository
  • Konsultiere die Dokumentation im docs/ Verzeichnis
  • ÜberprΓΌfe die Beispiele im examples/ Verzeichnis