mcp-server-ddd-template
Provides tools to obtain Bitcoin-related information, such as recommended transaction fees from Mempool.space.
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-server-ddd-templateGet Bitcoin fee recommendations"
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.
š MCP Server DDD Template
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.
Related MCP server: Bitcoin-MCP-Server
š 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.jsOr, if registered as a binary (for example, mcp-server-ddd-template):
npm link
mcp-server-ddd-templateThe 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 serverDependencies
@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!
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
- -license-quality-maintenanceA basic MCP server template built with FastMCP framework that provides example tools for echoing messages and retrieving server information. Serves as a starting point for developing custom MCP servers with Docker support and CI/CD integration.Last updated
- AlicenseAqualityCmaintenanceThe first MCP Server dedicated to Bitcoin ecosystemLast updated236MIT
- Flicense-qualityDmaintenanceA boilerplate MCP server demonstrating paid tools via Lightning micropayments, including weather data and food ordering.Last updated4
- Alicense-qualityCmaintenanceMCP server for Bitcoin block explorer and mempool/fee statistics, providing tools to query fees, mempool stats, blocks, transactions, addresses, hashrate, and mining pools.Last updated27MIT
Related MCP Connectors
A paid remote MCP for CLI tool MCP, built to return verdicts, receipts, usage logs, and audit-ready
MCP server for Blockscout
A paid remote MCP for hosted MCP server, built to return verdicts, receipts, usage logs, and audit-r
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/alexandresanlim/mcp-server-ddd-template'
If you have feedback or need assistance with the MCP directory API, please join our Discord server