Model Context Protocol (MCP) extends Lingma functionality by connecting it to external tools and data sources. This topic describes the popular MCP services, standard transport types, configuration procedures, example scenarios, and frequently-asked questions.
Before you start
To use this feature, update the Lingma plugin in your IDE:
JetBrains: version 2.5.0 or later.
VS Code: version 2.5.0 or later.
See Install Lingma for details.
What is MCP?
The Model Context Protocol (MCP) is an open protocol that standardizes how applications provide context and tools to LLMs. It allows you to connect Lingma Agent with various data sources and tools through standardized interfaces. This improves the Agent's capabilities and can better meet personalization needs.
You can choose to connect to existing MCP services or develop your own. Popular marketplaces like ModelScope MCP Square and Higress MCP Marketplace already provide rich MCP services. Explore and discover more solutions to accelerate your innovation.
Popular MCP marketplaces | Common scenarios |
|
|
Lingma supports the following standard transport types:
Standard Input/Output (stdio)
The stdio transport enables communication through standard input and output streams. This is particularly useful for local integrations and command-line tools.
Server-Sent Events (SSE)
SSE transport enables server-to-client streaming with HTTP POST requests for client-to-server communication.
How to configure and use MCP services
MCP services are supported in Agent mode, together with the Qwen3 model.
You can connect up to 10 MCP services at a time.
Add MCP service
1. Access the MCP service pageGo to Your Settings by clicking your avatar in the top right corner, and then select MCP tools. Note After adding MCP, it can be used across local projects in the IDE. |
|
2. Add a serviceMethod 1: Add through MCP marketplaceImportant Lingma IDE does not support searching in MCP Square
Note Some MCP Servers require additional environment variables when running, such as API_KEY or ACCESS_TOKEN.
Note If dependencies required by the command are missing, the service will show an error message when you start. Please manually install the required dependencies. See MCP FAQ for more help. |
|
Method 2: Add manuallyImportant Lingma IDE currently does not support adding through a graphical interface and only supports adding via configuration files.
|
|
Use MCP tools
Lingma automatically determines which MCP tool to call based on the user's input prompt, combined with the name and description of the MCP tool. It then uses the tool's results for the next steps.
1. Enter promptSwitch to Agent mode in the IDE's chat box and enter your prompt in the dialog box. |
|
2. Execute toolBefore Lingma calls an MCP tool, you are prompted with a confirmation. Press Ctrl+Enter to execute. |
|
3. Check execution resultsAfter the tool execution is complete, the Lingma chat box will display the execution results. Expand to see detailed input and output. |
|
4. Review code and accept changes |
|
Example scenarios
Lingma supports two types of MCP services:
SSE type (remote service hosting): Hosted on a remote server, with a simple and quick configuration process. Highly suitable for beginners to quickly get started and experience. In this example, you can use the fetch MCP service from the ModelScope MCP Market to easily implement the ability to scrape content from any webpage.
STDIO type (local service running): Runs in your local environment and depends on your local environment preparation. Suitable for professional developers. In this example, you will experience using the weather MCP to query city weather information.
Scenario 1: Using remote MCP to retrieve and process content from web pages
This scenario demonstrates how to use Fetch MCP Server to retrieve and process content from web pages, converting HTML to markdown for easier consumption.
1. Get the MCP SSE service endpoint
|
|
2. Add MCP serviceGo to MCP Services in the IDE plugin, and edit MCP server with the following:
|
|
3. Complete configurationYou'll see the icon displays |
|
4. Use MCP in LingmaSwitch to Agent mode in the lower-left corner of the IDE chat box, and enter a prompt to summarize online documentation: |
|
Then, enter the next prompt to generate code: |
|
Scenario 2: Using local MCP to query city weather
This scenario demonstrates how to query city weather using the weather MCP.
1. Check environmentEnsure that Node.js is installed in your local environment. You can ask Lingma to check the prerequisite environment. For example, use this prompt: |
|
2. Add MCP serviceGo to MCP Services in the IDE plugin, and edit MCP server with the following parameters:
|
|
3. Complete configurationYou'll see the icon displays |
|
4. Use MCP in LingmaSwitch to Agent mode , and enter your prompts in the chat box to check the weather: |
|
Then, enter the next prompt to check weather alerts: |
|

, indicating a successful connection. Expand the details to see the list of tools.














