vscode-mcp
vscode-mcp
VS CodeおよびCursor内でClaudeにIDE機能を提供するMCP(Model Context Protocol)サーバーです。Claudeはチャットから直接、ワークスペース内のファイルの読み取り、書き込み、編集、検索、コマンド実行を行うことができます。
ツール
ツール | 説明 |
| ファイルの内容を読み取る(行範囲指定可能) |
| ファイルへの書き込みまたは上書き(親ディレクトリも作成) |
| ファイル内の特定の文字列を置換 |
| ファイルとディレクトリの一覧表示(再帰的指定可能) |
| ディレクトリツリーの作成 |
| ファイルまたはディレクトリの削除 |
| ファイルまたはディレクトリの移動や名前変更 |
| ファイル全体に対するGrep形式の正規表現検索 |
| グロブパターン(例: |
| 任意のシェルコマンドを実行し、出力を取得 |
| プラットフォーム、Nodeバージョン、Gitブランチとステータスを取得 |
| ファイルのメタデータ(サイズ、更新日時、タイプ)を取得 |
Related MCP server: code-context
インストール
npm install
npm run buildCursorでの使用方法
Cursorは以下の場所からMCPサーバーの設定を読み込みます:
グローバル:
~/.cursor/mcp.jsonプロジェクト:
.cursor/mcp.json(プロジェクトルート内)
オプションA — node経由で実行(ビルド後)
CursorのMCP設定に以下を追加します:
{
"mcpServers": {
"vscode-mcp": {
"command": "node",
"args": ["/absolute/path/to/vscode-mcp/dist/index.js"]
}
}
}オプションB — npx経由で実行(手動ビルド不要)
{
"mcpServers": {
"vscode-mcp": {
"command": "npx",
"args": ["--yes", "vscode-mcp"]
}
}
}設定を編集した後、Cursor Settings → Features → MCPを開き、Refreshをクリック(またはCursorを再起動)してください。
VS Code + Copilot Chatでの使用方法(MCPサポート)
VS Codeのsettings.jsonに以下を追加します:
"mcp": {
"servers": {
"vscode-mcp": {
"type": "stdio",
"command": "node",
"args": ["/absolute/path/to/vscode-mcp/dist/index.js"]
}
}
}開発
npm run dev # watch mode (recompiles on save)
npm start # run the built serverヒント
すべてのパスは絶対パス、またはワークスペースルートからの相対パスで指定できます。
任意のツールに
workspace_rootを渡すことで、相対パスの基準ディレクトリを指定できます。run_commandは任意のシェルコマンドを受け付けます。git、npm、リンター、コンパイラなどに使用してください。search_filesはnode_modules、dist、および隠しフォルダを自動的にスキップします。
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityBmaintenanceAn MCP server that implements Claude Code-like functionality, allowing the AI to analyze codebases, modify files, execute commands, and manage projects through direct file system interactions.15304MIT
- AlicenseAqualityCmaintenanceAn MCP server that provides dynamic codebase context to Claude Code through tools like hybrid search, recent changes, and symbol definitions, enhancing AI-assisted coding with local RAG.8MIT
- AlicenseNot gradedqualityFmaintenanceMCP server that integrates with VS Code to enable file operations, git diffs, and line highlighting via MCP clients like Claude.42MIT
- AlicenseNot gradedqualityDmaintenanceAn MCP server that allows Claude Desktop to remotely control Claude Code instances for executing commands and managing files.61GPL 3.0
Related MCP Connectors
Augments MCP Server - A comprehensive framework documentation provider for Claude Code
Hosted MCP server connecting claude.ai, ChatGPT and other AI apps to your own computer
An MCP server that gives your AI access to the source code and docs of all public github repos
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/KloutDevs/vscode-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server