MCP Server NestJS
MCP-Server (NestJS)
Eine robuste, skalierbare und erweiterbare serverseitige Anwendung, die mit NestJS erstellt wurde. Dieses Projekt bietet eine MCP-Serverimplementierung (Model Context Protocol), Dateiverwaltung, Authentifizierung und modulare REST-APIs für Beiträge und Benutzer.
Inhaltsverzeichnis
Related MCP server: Desktop Commander MCP Server
Merkmale
MCP-Server : Implementiert Model Context Protocol für Dateioperationen und mehr.
Dateiverwaltung : Hochladen, Herunterladen, Auflisten und Löschen von Dateien über REST-Endpunkte.
Authentifizierung : JWT-basierte Authentifizierung mit lokaler Strategie.
Benutzer- und Postmodule : Modulare Struktur für Benutzer und Posts mit DTOs und Entitäten.
Swagger-Integration : sofort einsatzbereite API-Dokumentation.
Erweiterbar : Fügen Sie einfach neue Module und Funktionen hinzu.
Architektur
NestJS : Progressives Node.js-Framework zum Erstellen effizienter, zuverlässiger und skalierbarer serverseitiger Anwendungen.
MCP-Integration : Verwendet einen benutzerdefinierten FileBrowserMCP für Dateivorgänge.
Modulares Design : Jede Funktion ist in einem eigenen Modul gekapselt.
Erste Schritte
Voraussetzungen
Installation
# Clone the repository
$ git clone https://github.com/Cstannahill/mcp-server-nestjs.git
$ cd nestjs-mcp-server
# Install dependencies
$ npm installUmgebungsvariablen
Erstellen Sie im Stammverzeichnis eine .env Datei für alle Geheimnisse oder Konfigurationsüberschreibungen (optional).
Entwicklung
Ausführen des Servers
# Start in development mode (with hot reload)
$ npm run start:dev
# Start in production mode
$ npm run start:prodNützliche Befehle
# Compile TypeScript
$ npm run build
# Lint code
$ npm run lintTesten
Führen Sie Unit-Tests durch
$ npm run testFühren Sie End-to-End-Tests (e2e) durch
$ npm run test:e2eTestabdeckung
$ npm run test:covEinsatz
Erstellen Sie das Projekt:
$ npm run buildStarten Sie den Server:
$ npm run start:prodInformationen zur erweiterten Bereitstellung (Docker, Cloud usw.) finden Sie in den NestJS-Bereitstellungsdokumenten .
API-Referenz
Die Swagger-Benutzeroberfläche ist (sofern aktiviert) unter
/apiverfügbar, wenn der Server läuft.Hauptendpunkte:
POST /auth/login– Authentifizieren und JWT empfangenPOST /files/upload– Eine Datei hochladenGET /files/:idEine Datei herunterladenDELETE /files/:id— Eine Datei löschenGET /files– Dateien auflistenPOST /users— Einen Benutzer erstellenPOST /posts– Einen Beitrag erstellen
Weitere Einzelheiten finden Sie in den Controllerdateien in src/ .
Projektstruktur
src/
app.module.ts # Root module
main.ts # Entry point
auth/ # Authentication (JWT, guards, strategies)
file/ # File management (upload, download, delete)
mcps/ # Model Context Protocol integration
posts/ # Posts module
users/ # Users module
database/ # Database connection (if used)
uploads/ # Uploaded files (local dev)Beitragen
Forken Sie das Repository
Erstellen Sie Ihren Feature-Zweig (
git checkout -b feature/YourFeature)Übernehmen Sie Ihre Änderungen (
git commit -am 'Add some feature')Pushen zum Zweig (
git push origin feature/YourFeature)Öffnen einer Pull-Anfrage
Kodierungsstandards
Befolgen Sie den vorhandenen Codestil (siehe ESLint-Konfiguration).
Schreiben Sie Unit- und E2E-Tests für neue Funktionen
Dokumentieren Sie Ihren Code und aktualisieren Sie die README-Datei nach Bedarf
Git-Setup
Dieses Projekt verwendet Git zur Versionskontrolle. Der Remote-Ursprung ist wie folgt eingestellt:
https://github.com/Cstannahill/mcp-server-nestjs.gitLizenz
Nest ist vom MIT lizenziert .
Ressourcen und Support
Bei Fragen, Problemen oder Funktionsanfragen öffnen Sie bitte ein Problem oder wenden Sie sich an den Betreuer.
This server cannot be installed
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 Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
A Model Context Protocol (MCP) server for Selise Blocks Cloud integration
MCP server for InsForge BaaS — database, storage, edge functions, and deployments
Hosted MCP server for AI-driven data ops. Create apps, manage schemas, and CRUD structured data.
Related MCP Servers
- AlicenseAqualityDmaintenanceNode.js server implementing Model Context Protocol (MCP) for filesystem operations with comprehensive permission controls, allowing secure file and directory manipulation with granular access restrictions.21668,8093Unlicense - libtelnet variant
- -licenseAqualityNot gradedmaintenanceA comprehensive Node.js server implementing Model Context Protocol (MCP) that enables filesystem operations, process management, and terminal session handling with an enterprise-grade security approach.14668,809
- -licenseBqualityNot gradedmaintenanceA comprehensive Model Context Protocol server for PocketBase that provides both user and administrative functionality, enabling authentication, collection/record management, file operations, and system administration through a standardized interface.3812
- AlicenseNot gradedqualityFmaintenanceNode.js server implementing Model Context Protocol (MCP) for filesystem operations, enabling read/write files, directory management, search, and metadata retrieval via SSE transport.668,80917MIT
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/Cstannahill/mcp-server-nestjs'
If you have feedback or need assistance with the MCP directory API, please join our Discord server