Figure: An LLM connects via MCP client to one or more MCP servers.
Written by Martin Ågren - February 18, 2026
"Model Context Protocol"
MCP simplifies and standardizes API connection(s) between AI model and service(s).
AI model gets dynamic access to services.
Open source standard
Anthropic released this protocol November 2024.
MCP client connects to MCP server(s).
Example: ChatGPT connects to Dropbox.
Connecting via MCP can be simpler and faster than connecting to API(s).
API connection (without MCP) is still necessary for some services that don't have an MCP server.
Why relevant for code generation:
Popular method when coding: connecting LLM to code repositories, database with documentation / instructions (TODO) / project files etc. Makes LLM more useful for code generation.