Boilerplate MCP Server
TypeScript Model Context Protocol (MCP) server boilerplate providing IP lookup tools/resources. Includes CLI support and extensible structure for connecting AI systems (LLMs) to external data sources like ip-api.com. Ideal template for creating new MCP integrations via Node.js.
Overview
MCP Server Boilerplate is a comprehensive TypeScript implementation of the Model Context Protocol (MCP) server designed to facilitate the integration of AI-driven applications with various tools and resources.
To use the MCP Server Boilerplate, clone the repository, install the dependencies, and run the server using either STDIO for local CLI use or SSE for web-based multi-client interactions.
- Transport Flexibility: Supports both STDIO and SSE transports for different use cases. - Multi-Client Architecture: Allows multiple clients to connect and interact in real-time. - Developer-Friendly Tools: Includes logging, testing, and environment configuration options. - Persistent Storage: Automatically saves and loads notes in a JSON file. - Built-In Examples: Comes with example tools and resources for quick setup.
- Building custom MCP servers for AI applications.
- Real-time collaboration tools where multiple users can interact simultaneously.
- Monitoring systems that require real-time updates across devices.
- Development environments for testing server behavior with multiple clients.
Add to your AI client
Use these steps to connect Boilerplate MCP Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"boilerplate-mcp-server-aashari": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-boilerplate-mcp-server-aashari"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"boilerplate-mcp-server-aashari": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-boilerplate-mcp-server-aashari"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"boilerplate-mcp-server-aashari": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-boilerplate-mcp-server-aashari"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"boilerplate-mcp-server-aashari": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-boilerplate-mcp-server-aashari"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"boilerplate-mcp-server-aashari": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-boilerplate-mcp-server-aashari"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"boilerplate-mcp-server-aashari": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-boilerplate-mcp-server-aashari"
]
}
}
}FAQ
**What is the Model Context Protocol (MCP)?**
MCP is a protocol designed to facilitate communication between AI clients and servers, enabling the integration of various tools and resources.
**Is this project suitable for production use?**
Yes, the boilerplate is designed to be robust and flexible for production environments.
**How can I extend the server?**
You can add new tools, resources, and prompts by following the provided guidelines in the documentation.