Related MCP Server Resources

Explore more AI models, providers, and integration options:

  • Explore AI Models
  • Explore AI Providers
  • Explore MCP Servers
  • LangDB Pricing
  • Documentation
  • AI Industry Blog
  • Remote MCP Server
  • ERPNext MCP Server
  • Neo N3 MCP Server
  • TxtAi Memory Vector Server
  • Phrases MCP Server
Back to MCP Servers
MCP Server NestJS

MCP Server NestJS

Public
Cstannahill/mcp-server-nestjs

Robust and scalable Model Context Protocol server built with NestJS offering JWT authentication, modular REST APIs for file management, users, and posts, with seamless extensibility and integrated Swagger API documentation.

typescript
0 tools
May 29, 2025
Updated Jun 4, 2025

Supercharge Your AI with MCP Server NestJS

MCP Server

Unlock the full potential of MCP Server NestJS through LangDB's AI Gateway. Get enterprise-grade security, analytics, and seamless integration with zero configuration.

Unified API Access
Complete Tracing
Instant Setup
Get Started Now

Free tier available • No credit card required

Instant Setup
99.9% Uptime
10,000+Monthly Requests

MCP Server (NestJS)

A robust, scalable, and extensible server-side application built with NestJS. This project provides a Model Context Protocol (MCP) server implementation, file management, authentication, and modular REST APIs for posts and users.


Table of Contents

  • Features
  • Architecture
  • Getting Started
  • Development
  • Testing
  • Deployment
  • API Reference
  • Project Structure
  • Contributing
  • License

Features

  • MCP Server: Implements Model Context Protocol for file operations and more.
  • File Management: Upload, download, list, and delete files via REST endpoints.
  • Authentication: JWT-based authentication with local strategy.
  • User & Post Modules: Modular structure for users and posts with DTOs and entities.
  • Swagger Integration: API documentation out-of-the-box.
  • Extensible: Easily add new modules and features.

Architecture

  • NestJS: Progressive Node.js framework for building efficient, reliable, and scalable server-side applications.
  • MCP Integration: Uses a custom FileBrowserMCP for file operations.
  • Modular Design: Each feature is encapsulated in its own module.

Getting Started

Prerequisites

  • Node.js (v18+ recommended)
  • npm (comes with Node.js)
  • Git

Installation

# Clone the repository $ git clone https://github.com/Cstannahill/mcp-server-nestjs.git $ cd nestjs-mcp-server # Install dependencies $ npm install

Environment Variables

Create a .env file in the root directory for any secrets or configuration overrides (optional).


Development

Running the Server

# Start in development mode (with hot reload) $ npm run start:dev # Start in production mode $ npm run start:prod

Useful Commands

# Compile TypeScript $ npm run build # Lint code $ npm run lint

Testing

Run Unit Tests

$ npm run test

Run End-to-End (e2e) Tests

$ npm run test:e2e

Test Coverage

$ npm run test:cov

Deployment

  1. Build the project:
    $ npm run build
  2. Start the server:
    $ npm run start:prod
  3. For advanced deployment (Docker, cloud, etc.), see NestJS Deployment Docs.

API Reference

  • Swagger UI is available (if enabled) at /api when the server is running.
  • Main endpoints:
    • POST /auth/login — Authenticate and receive JWT
    • POST /files/upload — Upload a file
    • GET /files/:id — Download a file
    • DELETE /files/:id — Delete a file
    • GET /files — List files
    • POST /users — Create a user
    • POST /posts — Create a post

See controller files in src/ for more details.


Project Structure

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)

Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/YourFeature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin feature/YourFeature)
  5. Open a pull request

Coding Standards

  • Follow the existing code style (see ESLint config)
  • Write unit and e2e tests for new features
  • Document your code and update the README as needed

Git Setup

This project uses Git for version control. The remote origin is set to:

https://github.com/Cstannahill/mcp-server-nestjs.git

License

Nest is MIT licensed.


Resources & Support

  • NestJS Documentation
  • Discord Community
  • Courses
  • NestJS Devtools
  • Enterprise Support
  • Jobs Board
  • Author

For any questions, issues, or feature requests, please open an issue or contact the maintainer.

Publicly Shared Threads0

Discover shared experiences

Shared threads will appear here, showcasing real-world applications and insights from the community. Check back soon for updates!

Share your threads to help others
Related MCPs5
  • Remote MCP Server
    Remote MCP Server

    Remote Model Context Protocol server with Cloudflare Workers and Xano integration offering tool mana...

    Added May 30, 2025
  • ERPNext MCP Server
    ERPNext MCP Server

    Model Context Protocol server enabling seamless integration with ERPNext via API, offering authentic...

    Added May 30, 2025
  • Neo N3 MCP Server
    Neo N3 MCP Server

    Production-ready Model Context Protocol server offering seamless Neo N3 blockchain integration with ...

    Added May 30, 2025
  • TxtAi Memory Vector Server
    TxtAi Memory Vector Server

    Model Context Protocol server offering advanced semantic search, persistent memory management, tag-b...

    Added May 30, 2025
  • Phrases MCP Server
    Phrases MCP Server

    Efficient MCP (Model Context Protocol) server for managing inspirational phrases with full CRUD capa...

    6 tools
    Added May 30, 2025