Server Ddd Template
БесплатноНе проверенA template MCP server using Domain-Driven Design, providing Bitcoin fee recommendations and a health check tool.
Описание
A template MCP server using Domain-Driven Design, providing Bitcoin fee recommendations and a health check tool.
README
This repository is a template implementation of a Model Context Protocol (MCP) server in Node.js/TypeScript, designed to demonstrate a clean, layered architecture using Domain-Driven Design (DDD) principles. It provides tools to obtain Bitcoin-related information via external APIs.
✨ Key Features
- 🏗️ Template Project: This codebase serves as a reference template for structuring MCP servers with DDD, ready for customization and production use.
- 🔌 MCP Protocol: Communicates via stdio using the MCP protocol (
@modelcontextprotocol/sdk). - 🏛️ Layered DDD Architecture: Clear separation of domain, application, infrastructure, and interface layers.
- ⚡ TypeScript: Fully typed with modern TypeScript for better development experience.
📁 Project Structure
src/
├── domain/ # 🏛️ Domain models and response interfaces
│ └── models/
│ └── responses/
│ ├── ** interfaces responses **
├── infrastructure/ # 🔌 External API clients and request services
│ ├── interfaces/
│ │ └── IApiClient.ts
│ └── services/
│ ├── clients/
│ │ └── ** client api
│ └── requests/
│ ├── ** requests services **
├── application/ # ⚙️ Business logic and helpers
│ ├── services/
│ │ ├── ** services implementation **
│ └── helpers/
│ └── ** helpers **
├── interface/ # 🎮 Controllers (MCP tool registration)
│ └── controllers/
│ ├── base/
│ │ └── BaseToolsController.ts
│ ├── **controllers to inteface**
│ └── index.ts
├── shared/ # 🔗 Shared types/parameters
│ └── parameters/
│ └── **interfaces parameters**
└── main.ts # 🚀 Application entry point
🚀 Getting Started
git clone https://github.com/alexandresanlim/mcp-server-ddd-template.git
cd mcp-server-ddd-template
npm install
npm run build
🎯 Usage
After building, you can run the server directly:
node build/main.js
Or, if registered as a binary (for example, mcp-server-ddd-template):
npm link
mcp-server-ddd-template
The server will start on standard output (stdio) and wait for MCP requests.
🛠️ Available Tools in this sample
- 💰 get-recommended-fees: Get recommended Bitcoin transaction fees from Mempool.space
- 🔗 ping: Simple health check endpoint
🔗 Integration Example
To use this MCP server as a tool provider in a client (e.g., Claude client), you can either reference a local build or use the published npm package.
📂 Using Local Build Path
"btc-server": {
"command": "node",
"args": [
"{your project path}/mcp-server-ddd-template/build/main.js"
]
}
🛠️ Development
Build Commands
# Build for Unix/Linux/macOS
npm run build
# Build for Windows
npm run build:windows
# Run the server
npm run server
Dependencies
- @modelcontextprotocol/sdk: MCP protocol implementation
- zod: Runtime type validation
- typescript: Type safety and compilation
🤝 Contributing
Pull requests are welcome! Feel free to open issues or suggest improvements for this template repository.
⭐ Star this repository if you find it helpful!
Установка Server Ddd Template
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/alexandresanlim/mcp-server-ddd-templateFAQ
Server Ddd Template MCP бесплатный?
Да, Server Ddd Template MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Server Ddd Template?
Нет, Server Ddd Template работает без API-ключей и переменных окружения.
Server Ddd Template — hosted или self-hosted?
Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.
Как установить Server Ddd Template в Claude Desktop, Claude Code или Cursor?
Открой Server Ddd Template на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
LibreOffice Tools
Enables AI agents to read, write, and edit Office documents via LibreOffice with token-efficient design. Supports multiple formats including DOCX, XLSX, PPTX, a
автор: passerbyflutterdannote/figma-use
Full Figma control: create shapes, text, components, set styles, auto-layout, variables, export. 80+ tools.
автор: dannoteLogo.dev
Search and retrieve company logos by brand or domain. Customize size, format, and theme to match your design needs. Accelerate design, prototyping, and content
автор: NOVA-3951PIX4Dmatic
Enables GUI automation for controlling PIX4Dmatic on Windows through MCP. Supports launching, focusing, capturing screenshots, sending hotkeys, clicking UI elem
автор: jangjo123Compare Server Ddd Template with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории design
