A boilerplate Model Context Protocol (MCP) server implementation using TypeScript. This project demonstrates how to build a well-structured MCP server that exposes both tools and resources to AI applications like Claude Desktop. It serves as a starting point for developers building MCP-compatible servers with a focus on clean architecture, automated workflows, and easy deployment.
You can install this package globally to use as a CLI tool:
npm install -g @aashari/boilerplate-mcp-server
After global installation, you can run the CLI commands directly:
# Get help
boilerplate-mcp-server --help
# Get current IP details
boilerplate-mcp-server get-ip-details
# Get details for a specific IP
boilerplate-mcp-server get-ip-details 8.8.8.8
For development or local use, clone the repository and install dependencies:
git clone https://github.com/aashari/boilerplate-mcp-server.git
cd boilerplate-mcp-server
npm install
Then run the development server:
npm run dev
Or build and start:
npm run build
npm start
Before setting up with Claude Desktop or Cursor AI, you can configure the server. There are two recommended options for end users:
Pass your configuration directly in the Claude Desktop config or Cursor AI command:
{
"mcpServers": {
"aashari/boilerplate-mcp-server": {
"command": "npx",
"args": ["-y", "DEBUG=true", "IPAPI_API_TOKEN=your_token", "aashari/boilerplate-mcp-server"]
}
}
}
$HOME/.mcp/configs.json
:{
"@aashari/boilerplate-mcp-server": {
"environments": {
"DEBUG": "true",
"IPAPI_API_TOKEN": "your_token"
}
}
}
{
"mcpServers": {
"aashari/boilerplate-mcp-server": {
"command": "npx",
"args": ["-y", "aashari/boilerplate-mcp-server"]
}
}
}
This approach keeps your configuration in one secure location and simplifies your AI assistant setup.
true
to enable debug logging.To use this MCP server with Claude Desktop:
Open Claude Desktop Settings:
Edit MCP Configuration:
claude_desktop_config.json
fileUpdate Configuration File:
Example with global configuration file already set up:
{
"mcpServers": {
"aashari/boilerplate-mcp-server": {
"command": "npx",
"args": ["-y", "aashari/boilerplate-mcp-server"]
}
}
}
Restart Claude Desktop:
Verify Tool Availability:
get-ip-details
tool is listedTest the Tool:
To use this MCP server with Cursor AI:
Open Cursor Settings:
CMD + SHIFT + P
(or CTRL + SHIFT + P
on Windows)Add New MCP Server:
Configure MCP Server:
aashari/boilerplate-mcp-server
command
from the dropdownIf using global configuration file (recommended):
npx -y aashari/boilerplate-mcp-server
If passing configuration directly:
DEBUG=true IPAPI_API_TOKEN=your_token npx -y aashari/boilerplate-mcp-server
Verify Server Configuration:
get_ip_details
tool listed under the serverTest the Tool:
The package can also be used as a command-line tool for human interaction:
Get help and available commands:
npx -y aashari/boilerplate-mcp-server --help
Example output:
Usage: @aashari/boilerplate-mcp-server [options] [command]
A boilerplate Model Context Protocol (MCP) server implementation using TypeScript
Options:
-V, --version output the version number
-h, --help display help for command
Commands:
get-ip-details [ipAddress] Get details about a specific IP address or the current device
help [command] display help for command
Get current device IP details:
npx -y aashari/boilerplate-mcp-server get-ip-details
Example output:
status: success
country: Indonesia
countryCode: ID
region: JK
regionName: Jakarta
city: Jakarta
zip: 11730
lat: -6.2114
lon: 106.8446
timezone: Asia/Jakarta
isp: Biznet Wifi
org:
as: AS17451 BIZNET NETWORKS
query: 118.99.106.135
npx -y aashari/boilerplate-mcp-server get-ip-details 8.8.8.8
Example output:
status: success
country: United States
countryCode: US
region: VA
regionName: Virginia
city: Ashburn
zip: 20149
lat: 39.03
lon: -77.5
timezone: America/New_York
isp: Google LLC
org: Google Public DNS
as: AS15169 Google LLC
query: 8.8.8.8
For detailed information about the Model Context Protocol (MCP), including core concepts, architecture, and implementation guides, please refer to the official MCP documentation.
If you're interested in developing or extending this project, please refer to the Development Guide for detailed information on:
{
"mcpServers": {
"aashari/boilerplate-mcp-server": {
"env": {},
"args": [
"-y",
"DEBUG=true",
"IPAPI_API_TOKEN=your_token",
"aashari/boilerplate-mcp-server"
],
"command": "npx"
}
}
}
Seamless access to top MCP servers powering the future of AI integration.