Provides country-related data via Model Context Protocol (MCP) using REST Countries API, supporting session-based context management with TypeScript, Express, and Docker for scalable deployment.
Unlock the full potential of Countries MCP Server through LangDB's AI Gateway. Get enterprise-grade security, analytics, and seamless integration with zero configuration.
Free tier available • No credit card required
This project implements a Model Context Protocol (MCP) server that provides country-related data using the REST Countries API. It's built using TypeScript and Express, with Docker support for easy deployment.
npm install
.env
file in the root directory as .example showsnpm run dev
npm run build
npm start
docker-compose up --build
Main endpoint for MCP communication.
Headers:
Accept: application/json, text/event-stream
mcp-session-id
: Session identifier (null for new sessions)Initial Request:
mcp-session-id
headerSubsequent Requests:
Discover shared experiences
Shared threads will appear here, showcasing real-world applications and insights from the community. Check back soon for updates!