An MCP server that provides country-related data from the REST Countries API, allowing users to query information about countries through natural language.
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!