How to add MCP to Claude Code for VS Code

Published by Alvin Liu on

Claude Code and Claude Code IDE (VS Code) not share the same configuration. Especially if you configure the VS code version to use customized LLM API. This guide tell you how to configure local MCP service for the Claude Code Visual Studio Code version.

  1. Create a .mcp.json file in your project folder.
  2. Configure MCP service as shown in the below picture.
  3. Restart your VS Code
  4. Open Claude Code Plugin and type /mcp
  5. You will see the MCP server was loaded.

If you launch Claude cli by terminal, it will also prompt to use the .mcp.json file.

Categories: AIDatabase

Alvin Liu

Software Developer in Toronto

0 Comments

Leave a Reply

Avatar placeholder

Your email address will not be published. Required fields are marked *