What is MCP?
MCP is an open protocol that standardizes how applications provide context and tools to large language models (LLMs). By exposing functionality through a consistent interface, MCP allows LLMs to interact with external systems—such as APIs, databases, and local tools—in a structured and secure way.Why use MCP
MCP enables Qoder Agent to connect with a wide range of external systems and data sources via standardized interfaces. This enhances the agent’s ability to:- Retrieve real-time information
- Perform actions in external systems
- Process structured or unstructured data
How it works
MCP servers expose their capabilities (such as functions and data access) through the MCP protocol. Qoder discovers and invokes these capabilities based on user input and tool metadata. Qoder supports two standard transport types:- Standard Input/Output (STDIO)
- Communication occurs through stdin/stdout streams.
- Ideal for local tools and command-line integrations.
- Requires local environment setup—best suited for professional developers.
- Server-Sent Events (SSE)
- Uses HTTP POST for client-to-server requests and event streams for server-to-client responses.
- Hosted remotely—easy to configure and use.
- Highly recommended for beginners and quick prototyping.
Limitations
- MCP servers are only supported in Agent mode.
- You can use a maximum of 10 MCP servers simultaneously.
Configure MCP servers
1. In the upper-right corner of your Qoder IDE, click the user icon or use the keyboard shortcut (⌘
⇧
,
(macOS)orCtrl
shift
,
(Windows)), and select Qoder Settings.
2. In the left-side navigation pane, click MCP.
3. Choose to either:
- Connect to your own MCP server
- Name
- Transport type (STDIO or SSE)
- Command and arguments (for STDIO)
-
Endpoint URL (for SSE)
Example:
c. Close the file and click Save when prompted.
- Use an MCP server in MCP Square
Note: Some MCP servers require additional environment variables—such as API_KEY or ACCESS_TOKEN—to function. These must be configured manually.c. Go to the My Servers tab to confirm the installation. Expand the details to see the tools list.
Note: If a server fails to start due to missing dependencies, click Quick Fix. If the issue persists, install the dependencies manually. For troubleshooting, see MCP common issues.
Use MCP tools
Qoder automatically selects the appropriate MCP tool based on:- Your input prompt
- The tool’s name and description
Steps
- In the AI Chat panel, switch to Agent mode and enter your prompt.
-
Before calling a tool, Qoder prompts for confirmation. Press
⌘
⏎
(macOS) orCtrl
Enter
(Windows) to execute. - After execution, the result appears in the chat. Expand the response to view detailed input and output.
- Review any generated code and accept changes as needed.
Example scenarios
Scenario 1: Retrieve and process web content (remote MCP via SSE)
Use an MCP server to fetch and convert web content from HTML to Markdown for easier reading. Step 1: Get the MCP SSE server endpoint- Visit the official MCP marketplace website.
- Copy the SSE endpoint URL for the fetch server.
- Name:
fetch
- Type:
SSE
- Server endpoint: Paste the copied URL.
Scenario 2: Query city weather (local MCP via STDIO)
Use a local MCP server to retrieve real-time weather data. Step 1: Check prerequisites Ensure Node.js is installed. You can ask Qoder to verify:- Name:
weather
- Type:
STDIO
- Command:
npx
- Arguments: