Install
$ agentstack add mcp-antoniodevivo-mcp-server-template ✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
About
MCP Server Template
A lightweight and extensible MCP (Model Context Protocol) server implementation built with Express.js and TypeScript. This template provides a solid foundation for building AI-powered applications that can communicate with MCP-compatible clients through Server-Sent Events (SSE).
Features
- Express.js server with TypeScript support
- Server-Sent Events (SSE) for real-time communication
- MCP protocol implementation
- Note management system
- Docker support
- Input validation using Zod
Prerequisites
- Node.js 22 or higher
- npm (Node Package Manager)
- Docker (optional)
Installation
- Clone the repository:
git clone https://github.com/yourusername/mcp-template.git
cd mcp-template
- Install dependencies:
npm install
- Build the project:
npm run build
Running the Server
Local Development
npm start
The server will start on port 3123 by default.
Using Docker
Build the Docker image:
docker build -t mcp-template .
Run the container:
docker run -p 3123:3123 mcp-template
API Endpoints
MCP Endpoints
GET /mcp/sse- Establishes an SSE connection for MCP communication
Available Tools
add-note- Add a new note to the note store
- Parameters:
noteTitle: string - The title of the notenoteContent: string - The content of the notenoteTags: string[] (optional) - Tags for the note
update-note- Update an existing note
- Parameters:
noteId: string - The ID of the note to updatenoteTitle: string - The new title of the notenoteContent: string - The new content of the notenoteTags: string[] (optional) - The new tags for the note
get-note- Retrieve a specific note
- Parameters:
noteId: string - The ID of the note to retrieve
get-all-notes- Retrieve all notes from the store
- Parameters: None
delete-note- Delete a note from the store
- Parameters:
noteId: string - The ID of the note to delete
Input Validation
The server uses Zod for runtime type checking and input validation. All incoming requests are validated against predefined schemas before processing. This ensures type safety and data integrity throughout the application.
Environment Variables
PORT- Server port (default: 3123)LOG_LEVEL- Logging level (default: "info")DOCKER- Set to "true" when running in DockerDEV- Set to "true" for development mode
Development
Project Structure
src/
├── config.ts # Configuration settings
├── index.ts # Application entry point
├── logger.ts # Logging configuration
├── note-store.ts # Note management system
└── server/
└── routers/
└── mcp.ts # MCP router implementation
Building
npm run build
Linting
npm run lint
License
MIT
Author
Antonio De Vivo
Source & license
This open-source MCP server is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: antoniodevivo
- Source: antoniodevivo/mcp-server-template
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet — be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.