Back to Home
aashari icon

boilerplate-mcp-server

Verified Safe

by aashari

Overview

This boilerplate provides a production-ready foundation for developing custom Model Context Protocol (MCP) servers in TypeScript to connect AI assistants with external APIs and data sources, exemplified by an IP geolocation lookup tool.

Installation

Run Command
npm run mcp:http

Environment Variables

  • TRANSPORT_MODE
  • PORT
  • DEBUG
  • NODE_ENV
  • IPAPI_API_TOKEN

Security Notes

The server uses standard HTTP/STDIO transports and fetches data from external APIs. It logs raw API responses to `/tmp/mcp/<project>/` for debugging, which is a temporary, controlled location and does not pose significant arbitrary file write risks. JMESPath filtering is used, which is a safe JSON query language, not susceptible to code injection. Configuration is handled securely via environment variables or a global config file (`~/.mcp/configs.json`). No direct 'eval' or other easily exploitable code execution patterns were found. The use of `spawn` is confined to CLI tests.

Similar Servers

Stats

Interest Score47
Security Score9
Cost ClassLow
Avg Tokens100
Stars61
Forks22
Last Update2025-12-03

Tags

MCPTypeScriptAI IntegrationServerTooling