mcp-task-api
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-task-apilist all tasks with high priority"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
NestJS MCP/REST API
A demonstration of integrating enterprise REST APIs with AI Agents using the Model Context Protocol (MCP ).
This project illustrates how to transform a conventional NestJS API into an MCP server, enabling AI agents (such as Claude and ChatGPT) to interact directly with business logic in a secure, standardized way with high code reusability.
💡 Problem & Solution
The Challenge
Integrating AI agents with internal systems usually requires building custom connectors or insecurely exposing API keys within prompts. Furthermore, keeping API documentation (like Swagger) in sync with AI "skills" creates significant maintenance overhead.
The MCP Approach
By leveraging the Model Context Protocol, this API exposes a single standardized endpoint that describes its capabilities to the AI.
Security: Maintains authentication via API Key.
Engineering: Reuses 100% of existing NestJS Services and Controllers.
Scalability: Enables the AI to perform complex operations (CRUD) without requiring specific integration code on the client side.
Related MCP server: FRD Orchestrator
🛠️ Tech Stack
Framework: NestJS (Node.js)
Language: TypeScript
ORM: Prisma with SQLite
Protocol: @modelcontextprotocol/sdk
Package Manager: PNPM
🌿 Branch Structure
To facilitate learning, the repository is organized into:
master: Initial REST API boilerplate (starting point for the tutorial).final: Complete implementation with the MCP server configured and integrated.
🚀 Setup & Installation
1. Environment Configuration
cp .env.example .envGenerate a secure key for API_KEY:
node -e "console.log(require('crypto').randomBytes(32).toString('hex'))"2. Installation & Database
pnpm install
pnpm prisma migrate dev
pnpm prisma generate3. Execution
# Development mode
pnpm run start:dev🔌 MCP Interface (Model Context Protocol)
The core advantage of this project is the MCP layer. You can inspect how the AI "sees" your API using the official Inspector:
npx @modelcontextprotocol/inspector --cli http://localhost:3000/mcp --transport http --method tools/list --header "X-API-Key: YOUR_KEY_HERE"Why is this relevant for Engineering?
Unlike a simple webhook, MCP provides a typed schema of tools. When the AI asks "which tasks are pending?", the MCP server maps this intent directly to TasksService.findAll( ), ensuring that business rules are strictly followed.
🔒 Security & Production
SSL/TLS: Essential for production. AI agents require HTTPS for secure communication.
Ports: Using the standard port
443is recommended to avoid connectivity issues on platforms like ChatGPT.Authentication: Implemented via
X-API-Keyin the header, ensuring only authorized agents can invoke the tools.
👨💻 About the Author
David FernandesFull Stack Developer specialized in React, Next.js, and TypeScript.
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 Servers
- FlicenseNot gradedqualityDmaintenanceAutomatically converts Swagger/OpenAPI specifications into MCP servers, enabling AI agents to interact with any REST API through natural language by exposing endpoints as AI-friendly tools.3
- AlicenseBqualityDmaintenanceAn MCP server that exposes structured Functional Requirements Documents (FRDs) to enable AI assistants like GitHub Copilot to automatically generate complete NestJS boilerplate architectures. It orchestrates the multi-phase creation of production-ready APIs including core CRUD, database integration, JWT authentication, and unit testing.1MIT
- AlicenseNot gradedqualityBmaintenanceConverts any OpenAPI specification into an MCP server, allowing AI assistants to interact with REST APIs through natural language.91MIT
- AlicenseAqualityDmaintenanceA TypeScript-based MCP server that integrates with Swagger/OpenAPI specifications to expose API endpoints as tools for Large Language Models (LLMs), enabling natural language interaction with any OpenAPI-compliant API.49MIT
Related MCP Connectors
Hosted MCP server to manage a restaurant menu from AI agents - 39 tools over the DuckHub API.
MCP server exposing the Backtest360 engine API as tools for AI agents.
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
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/david-sfernandes/mcp-task-api'
If you have feedback or need assistance with the MCP directory API, please join our Discord server