What is MCP

Warning

This feature is only available in Visual Studio Code.

MCP (Model Context Protocol) is a standardized communication protocol for LLM systems that enables the use of external tools and services. It works as a universal adapter between AI assistants and different data sources or applications.

MCP employs the client-server architecture:

  1. AI assistant (client) connects to MCP servers.
  2. Each server provides features of its own: file access, database queries, API integration.
  3. AI makes use of these features via a standardized interface.
  4. The communication takes place via JSON-RPC 2.0 messages.

MCP is similar to a USB-C port in the sense that each compatible LLM can connect to any MCP server to access its functionality. Such standardization eliminates the need for custom integrations for each tool and service.

For example, an MCP-based AI can perform tasks like searching through the corporate database and drawing up a report without a specialized code for each database system.

FAQ

Is MCP a cloud service?

MCP servers can operate locally on your computer or remotely as cloud services depending on your application requirements and security needs.

Does MCP replace other integration methods?

No. MCP complements your existing tools, such as API plugins and retrieval-augmented generation. It is a standardized protocol for interaction with tools; however, it does not replace specialized integration mechanisms.

How is security guaranteed?

Users have control over which MCP servers they connect to and the permissions these servers have. Same as with any tool with access to data or services, you must use trusted sources and have proper access control measures in place.

MCP in Code Assistant

Code Assistant implements MCP to achieve the following:

  • Connection to both local and remote MCP servers.
  • A single interface for tool access.
  • Enhanced functionality without modifying the core.
  • Specialized features on demand.

MCP is a standardized interface between AI systems and external tools and services that makes complex integrations more affordable and coherent.

See also