The Model Context Protocol (MCP) is a standardized protocol for managing context between large language models (LLMs) and external systems. This repository provides an MCP Server for the api-colombia API, allowing you to use the API throught natural language. This MCP server supports the transport types STDIO and Streamable HTTP.
On its creators words, API Colombia is a public RESTful API that enables users to access a wide range of public information about the country of Colombia.
After cloning the project, install all the dependencies
pnpm install
Once all the dependencies are installed, generate the api-colombia client
pnpm prepare
npx @modelcontextprotocol/inspector node dist/index.js --stdio
Note: If you make changes to your code, remember to rebuild:
pnpm build
- Start the HTTP server
pnpm start
- Start the MCP inspector
npx @modelcontextprotocol/inspector
- Download LM Studio
- Download and load the model you want to use for testing. A small but good one at the moment is the Qwen3 4B Thinking 2507 model
- Build and start the MCP server
pnpm build && pnpm start
- Add the MCP configuration in LM Studio, putting the following text in the
mcp.jsonfile or clicking the Add to LM studio button. You can find more info about this here
{
"mcpServers": {
"mcp-api-colombia": {
"url": "http://localhost:3000/mcp"
}
}
}
- Check that you can see all the available tools, enable and start interacting with them
Note: Since Qwen3 4B is a small model and only has a context length of 32,768, you can't load all the tools at once, and because of that you will need to only load the ones you will work with. When using bigger models that support a bigger context length, that's not a problem.
MIT License
