Back to the catalog

mcp-template-server

Template for creating new MCP servers with Gemini CLI support

Open source Open in the app JSON README (API)

About

Template for creating new MCP servers with Gemini CLI support

Details

Kind
Plugins
Topic
AI, RAG & memory
Publisher
jorelcb
Origin
gemini
Category
ferramentas
Version
1.0.0
Stars
1
Last push
2026-02-13T03:29:29Z
Repository state
ativo
Language
JavaScript
License
Apache-2.0
Added
2026-08-30 14:13:39
Updated
2026-08-30 14:13:39
Origin id
jorelcb/mcp-template

README

# ๐Ÿงฉ MCP Server Template

> The ultimate starter kit for building professional Model Context Protocol servers.

[![License](https://img.shields.io/badge/license-MIT-green.svg)](LICENSE)
[![Stack](https://img.shields.io/badge/stack-TypeScript-blue.svg)]()
[![MCP](https://img.shields.io/badge/MCP-Ready-green.svg)](https://modelcontextprotocol.io)

---

## ๐ŸŽฏ Overview

Stop reinventing the wheel. This template provides a **production-ready foundation** for creating new MCP servers, pre-configured with the best practices for TypeScript, Docker, and Gemini CLI Extensions.

### โœจ What's Included?

- **๐Ÿ—๏ธ Dual-Layer Architecture**: Setup for both Raw MCP and Gemini Extensions.
- **๐Ÿ”Œ Official SDK**: Pre-configured `@modelcontextprotocol/sdk`.
- **๐Ÿณ Docker Ready**: `Dockerfile` optimized for deployment.
- **๐Ÿค– Agent Context**: `GEMINI.md` structure for "Soft Logic".
- **๐Ÿ› ๏ธ TypeScript**: Strict mode, linting, and build scripts.

## ๐Ÿš€ Usage

### 1. Create a New Server

```bash
# 1. Clone the template
git clone https://github.com/jorelcb/mcp-template my-new-server

# 2. Reset git history
cd my-new-server
rm -rf .git
git init

# 3. Install dependencies
npm install
```

### 2. Customize

1.  **Update `package.json`**: Set your server name and description.
2.  **Implement Logic**: Edit `src/index.ts` to add your Tools.
3.  **Define Agent Persona**: Edit `GEMINI.md` to guide the AI.
4.  **Add Commands**: Create `.toml` files in `commands/`.

## ๐Ÿ“‚ Project Structure

```
.
โ”œโ”€โ”€ src/                # ๐Ÿง  TypeScript Source Code
โ”œโ”€โ”€ commands/           # โšก Gemini CLI Slash Commands
โ”œโ”€โ”€ GEMINI.md           # ๐Ÿค– Agent Context (Soft Logic)
โ”œโ”€โ”€ gemini-extension.json # โš™๏ธ Extension Config
โ””โ”€โ”€ Dockerfile          # ๐Ÿณ Container Config
```

## ๐Ÿค Contributing

Contributions to the template are welcome! Please ensure any changes are generic and useful for *all* future servers.

---
**Part of the [MCP Servers Monorepo](../README.md)**

More