MCP configuration for Q Developer in the IDE
This page covers IDE-specific options for configuring MCP servers.
Understanding MCP configuration files for Q Developer in the IDE
When you use the GUI to add an MCP server to Q Developer in the IDE, the configuration is stored in one of two files:
At the global scope: ~/.aws/amazonq/default.json
At the local scope: .amazonq/default.json
However, for legacy reasons, it is also possible to put MCP configuration information in two other locations:
At the global scope: ~/.aws/amazonq/mcp.json
At the local scope: .amazonq/mcp.json
Q Developer gives precedence to workspace level configurations for MCP servers, their permissions, and the settings stored.
If you have already set up an MCP configuration in an mcp.json file, and you are using the MCP configuration GUI for the first time, you will see that configuration in the GUI.
Support for legacy mcp.json files is enabled by the useLegacyMcpJson field in your global default.json config file. By default, this field is set to true. For more information, see UseLegacyMcpJson Field
Note that the mcp.json files may also be used by the Q CLI.
For information about how to set granular controls on MCP tooling, see the Built-in tools reference
Accessing the MCP configuration UI
To access the MCP configuration UI in Q Developer in the IDE:
-
Open your IDE (VS Code, JetBrains, etc.).
-
Open the Q Developer panel.
-
Open the Chat panel.
-
Choose the tools icon.
Adding an MCP server
There are two primary transport mechanisms for communication between AI clients and MCP servers: STDIO and HTTP.
Adding an HTTP MCP server
To add an HTTP MCP server to the IDE:
-
Choose the plus (+) symbol.
-
Select the scope: global or local.
If you select global scope, the MCP server configuration is stored in ~/.aws/amazonq/default.json and available across all your projects. If you select local scope, the configuration is stored in .amazonq/default.json within your current project.
-
In the Name field, enter the name of the MCP server.
-
Select
httpas the transport protocol. -
In the URL field, enter the URL that the MCP server will call when it initializes.
-
Under Headers - optional, you can enter key-value pairs that must be sent as HTTP request headers. .
-
Enter a Timeout value, as applicable.
-
Choose Save.
The configuration panel will be replaced with the tool permissions panel.
-
Follow the procedure under Reviewing and adjusting tool permissions .
If the MCP HTTP endpoint requires authorization, then Amazon Q will automatically open a browser page so that you can authorize Amazon Q to access the MCP server.
Adding an STDIO MCP server
To add an STDIO MCP server to the IDE:
-
Choose the plus (+) symbol.
-
Select the scope: global or local.
If you select global scope, the MCP server configuration is stored in ~/.aws/amazonq/default.json and available across all your projects. If you select local scope, the configuration is stored in .amazonq/default.json within your current project.
-
In the Name field, enter the name of the MCP server.
For example, if we were installing the AWS Documentation MCP server
, the name might be AWSDocMCPServer. -
Select
stdioas the transport protocol. -
In the Command field, enter the shell command that the MCP server will run when it initializes.
In the case of the AWS Documentation MCP Server, the command is
uvx. This is an alias foruv tool run, which creates an ephemeral Python environment. -
In the Arguments field, enter an argument to be given to the shell command, if applicable.
In the case of the AWS Documentation MCP Server, the argument is
awslabs.aws-documentation-mcp-server@latest. This is a Python package identifier that points to a package hosted on PyPI (Python Package Index).Add more arguments as necessary.
-
Fill in environment variables as applicable.
In the case of our example, we first fill in Name:
FASTMCP_LOG_LEVELand Value:ERROR.We will also use the name
AWS_DOCUMENTATION_PARTITIONand the valueawsto indicate the partition that we'll be working with. -
Enter a Timeout value, as applicable.
For our example, we'll keep the recommended value of 60 (seconds).
-
Choose Save.
The configuration panel will be replaced with the tool permissions panel.
-
Follow the procedure under Reviewing and adjusting tool permissions .
Working directory and workspace trust for STDIO MCP servers
Model Context Protocol (MCP) servers that use STDIO run as local processes on your computer. Q Developer starts them with your workspace folder as their working directory. If your workspace has more than one folder, Q Developer uses the first folder in the list, for example the top folder in the VS Code Explorer. This applies to servers at both global and local scope. Relative paths in a server's arguments are resolved from that folder.
Commands such as npx, uvx, and python -m can load programs and settings from the working directory. For this reason, Q Developer starts STDIO MCP servers in a workspace folder only after that folder is trusted. This doesn't apply to HTTP MCP servers.
How a folder is trusted depends on your IDE:
-
Visual Studio Code: Q Developer follows VS Code Workspace Trust. Q Developer doesn't run in Restricted Mode. After you trust the workspace, Q Developer starts and its MCP servers start. You don't need to restart VS Code.
-
JetBrains IDEs: Q Developer follows the IDE's project trust. If you open a project in safe mode, STDIO MCP servers wait until you trust the project. When you trust it, they start without restarting the IDE.
-
Eclipse and Visual Studio: the first time Q Developer starts STDIO MCP servers in a folder, it asks Start MCP servers in this folder?
-
If you choose Allow, Q Developer remembers your choice for that folder. If you replace the folder, for example by deleting it and cloning it again at the same path, Q Developer asks again.
-
If you choose Don't allow, the MCP servers won't start. To see the prompt again, refresh the MCP server list.
-
To clear the folders you allowed, choose Forget allowed folders (the trash icon) at the top of the MCP Servers panel.
-
While a server waits, the MCP Servers panel lists it under Waiting for trust, with what you need to do to start it.
If no folder is open, Q Developer starts STDIO MCP servers in ~/.aws/amazonq/mcp-cwd, an empty folder that it creates for this purpose.
Troubleshooting your MCP configuration
After you add an MCP server in the IDE, Amazon Q will attempt to connect to it.
If there are connection issues, then an alert appears in the panel. You should not expect the tools from that MCP server to function properly until the alert is resolved.
Choose Fix Configuration to return to the MCP configuration screen so that you can make the appropriate changes.
If an STDIO MCP server is listed under Waiting for trust, it starts after the workspace folder is trusted. For more information, see Working directory and workspace trust for STDIO MCP servers.
Enabling an MCP server
The following procedure assumes that the MCP server in question is not already enabled.
To enable an MCP server in the IDE:
-
Open the MCP Servers panel.
-
Next to the server that you want to enable, choose Enable.
Disabling an MCP server
To disable an MCP server in the IDE:
-
Open the MCP Servers panel.
-
Choose the server you want to disable.
-
Choose the three dots next to Edit setup.
-
Choose Disable MCP Server.
Deleting an MCP server that is currently enabled
To delete an MCP server that is currently enabled from the IDE:
-
Open the MCP Servers panel.
-
Choose the server you want to delete.
A panel will open with details about that server.
-
Choose the three dots next to Edit setup.
-
Choose Delete MCP server.
-
Confirm the deletion when prompted.
Deleting an MCP server that is currently disabled
To delete an MCP server that is currently disabled from the IDE:
-
Open the MCP Servers panel.
-
Next to the server that you want to delete, choose Delete.
-
Confirm the deletion when prompted.
Reviewing and adjusting tool permissions
To review and adjusting tool permissions:
-
Open the MCP Servers panel.
-
Choose the MCP server for which you want to review and adjust permissions.
-
For each tool, you can set one of the following permission levels:
-
Ask: Prompt for permission each time the tool is used.
-
Always allow: Allow the tool to run without prompting.
-
Deny: Do not use this tool.
-