mcp-server-countries

jaktestowac/mcp-server-countries

3.2

If you are the rightful owner of mcp-server-countries and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

MCP Server Countries is a lightweight MCP Server designed for managing a list of countries, built with TypeScript for learning and prototyping Model Context Protocol (MCP) tools.

MCP Server Countries Demo

MCP Server Countries is a lightweight MCP Server that allows you to manage a list of countries. It is built with TypeScript and designed for learning, prototyping Model Context Protocol (MCP) tools.

Note: This project is used in course Playwright z AI + MCP.


📁 Project Structure

Each directory in this repository (e.g., mcp-server-countries-demo-S01L02, mcp-server-countries-demo-S01L04, mcp-server-countries-demo-S01L06) is a standalone project that corresponds to a specific lesson in the course. You can explore and run each lesson's code independently.


📦 Features

  • List all countries
  • Get details of a specific country
  • Add a new country
  • Update country information
  • Delete a country

Server is designed to be simple and easy to extend for learning purposes. Is using free and open source https://restcountries.com API to fetch country data.


🛠️ Getting Started

Prerequisites

  • Node.js (v18 or newer recommended)
  • npm or yarn

Installation

  1. Clone the repository:

  2. Open a terminal and run:

npm i

Running the Server

  1. Test with MCP Inspector:
npx -y @modelcontextprotocol/inspector npx -y tsx main.ts

or run directly:

npm run test
  1. Use with VS Code

  2. Open the mcp.jsonfile in .vscode folder

  3. Click the start server button (above line "mcp-server-countries")

  4. Open Chat mode and select agent

  5. Type into the chat and ask What countries do you have? or Use tool to get information about country Poland and its population


Links and Resources


📞 Contact & Support

Feel free to reach out to us:


Learning Resources

We have gathered a collection of resources to help you learn and master Playwright, both in Polish and English. Whether you're a beginner or an advanced user, these resources will help you enhance your skills and knowledge.

🇵🇱 Polish Resources

🇬🇧 English Resources

PS. For more resources and updates, follow us on our website and GitHub.


Happy testing and automating tests! 🚀

jaktestowac.pl Team 💚❤️

PS. For more resources and updates, follow us on our website and GitHub.


Built with 💚❤️ for the Playwright and testing automation community