Countries MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Countries MCP Serverwhat's the population of Brazil?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Countries MCP
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.
Prerequisites
Node.js (v14 or higher)
Docker and Docker Compose
npm or yarn package manager
Related MCP server: bamwor-mcp-server
Installation
Install dependencies:
npm installAdd a
.envfile in the root directory as .example shows
Running the Application
Development Mode
npm run devProduction Mode
Build the application:
npm run buildStart the server:
npm startUsing Docker
Build and run using Docker Compose:
docker-compose up --buildAPI Documentation
Endpoints
POST /mcp
Main endpoint for MCP communication.
Headers:
Accept: application/json, text/event-streammcp-session-id: Session identifier (null for new sessions)
Initial Request:
First request should not include a session ID
Server will respond with a new session ID in the
mcp-session-idheader
Subsequent Requests:
Include the session ID received from the initial request
Maintains the session context for continued interaction
This server cannot be deployed
Maintenance
Related MCP Connectors
Countries MCP — world country data from REST Countries API v3.1
This MCP server provides seamless access to Malaysia's government open data, including datasets, w…
Official IPinfo MCP Server - IP intelligence tools for AI assistants
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceA modular MCP server that provides tools for looking up country and state information. Designed as a demonstration of building extensible MCP servers with custom tool modules.-
- AlicenseAqualityFmaintenanceMCP server providing structured geographic data for AI agents. Access 261 countries and millions of cities via Bamwor API.520 npm2MIT
- AlicenseNot gradedqualityDmaintenanceMCP Server that gives AI assistants access to comprehensive country data from 250+ countries.1MIT
- AlicenseBqualityDmaintenanceAn unofficial MCP server providing access to Dutch government open data from data.overheid.nl, CBS statistics, and KVK business registry. Enables natural language queries for discovering datasets, inspecting metadata, and querying data without API keys or authentication.14MIT