# Using the MCP Server

The primary focus of these examples is to help you set up your environment variables, particularly `SONARQUBE_IDE_PORT`, using container examples for both SonarQube Cloud and SonarQube Server. Once configured, your can use your AI agent to analyze code snippets or entire files directly within your IDE.

If needed, check out the [quickstart-guide](https://docs.sonarsource.com/sonarqube-mcp-server/quickstart-guide "mention") to get on your way before interacting with the SonarQube MCP Server.

{% columns %}
{% column %}
{% content-ref url="using/integration" %}
[integration](https://docs.sonarsource.com/sonarqube-mcp-server/using/integration)
{% endcontent-ref %}

{% content-ref url="using/tools" %}
[tools](https://docs.sonarsource.com/sonarqube-mcp-server/using/tools)
{% endcontent-ref %}
{% endcolumn %}

{% column %}
{% content-ref url="using/analyze-your-code" %}
[analyze-your-code](https://docs.sonarsource.com/sonarqube-mcp-server/using/analyze-your-code)
{% endcontent-ref %}
{% endcolumn %}
{% endcolumns %}

## Using the MCP tools

After you [configure](https://docs.sonarsource.com/sonarqube-mcp-server/build-and-configure/configure "mention"), you can open the chat view in your AI-enabled IDE and start using the MCP server. You'll see your custom tools available, and you can even get suggestions for how to use them. See the [tools](https://docs.sonarsource.com/sonarqube-mcp-server/using/tools "mention") page for a full list of built-in tools.
