A VS Code extension that enables AI agents to perform HTTP requests through the Model Context Protocol (MCP).
What is this?
This extension installs and manages the mcp-http-tool
server, which allows AI assistants like Claude to make HTTP requests, interact with REST APIs, upload files, and perform web operations directly from your VS Code workspace.
Quick Start
- Install the extension from the VS Code marketplace
- Run the setup command - Press
Ctrl+Shift+P
and type "mcp-http-tool: Install & Configure Server"
- Choose configuration scope - Global (for all projects) or Workspace (current project only)
- Start the server - The extension will prompt you to start the server automatically
Available Commands
Press Ctrl+Shift+P
and type "mcp-http-tool:" to see all available commands:
- mcp-http-tool: Install & Configure Server - Install the Python package and add server to MCP configuration
- mcp-http-tool: Start Server - Start the MCP HTTP server
- mcp-http-tool: Stop Server - Stop the running server
- mcp-http-tool: Restart Server - Restart the server
- mcp-http-tool: Check Server Status - View current server status
- mcp-http-tool: Edit Configuration - Open mcp.json file to edit MCP server configuration
Requirements
- Python 3.7+ with pip installed
- VS Code 1.102.0 or newer
- AI assistant that supports MCP (like Claude Desktop)
How it works
- The extension installs the
mcp-http-tool
Python package via pip
- Adds the server configuration to your MCP configuration file (mcp.json)
- Your AI assistant can then connect to the server to perform HTTP operations
- AI can make GET/POST requests, upload files, interact with REST APIs, and handle web-based operations in your workspace
Features
The MCP HTTP Tool provides the following capabilities:
- HTTP GET Requests - Retrieve data from web APIs and websites
- HTTP POST Requests - Send JSON data or form data to endpoints
- File Upload - Upload files using multipart/form-data
- AI-Driven Requests - Intelligently select the appropriate HTTP method based on goals
- Authentication Support - Handle various authentication methods
- Flexible Data Handling - Support for JSON, form data, and file uploads
Configuration
The server is added to your MCP configuration under the servers
section in either:
- Global:
%USERPROFILE%\AppData\Roaming\Code\User\mcp.json
(Windows)
- Workspace:
.vscode/mcp.json
in your current workspace
You can choose to install it globally (all workspaces) or locally (current workspace only).
The extension adds this configuration to your mcp.json file:
{
"servers": {
"http-tool": {
"command": "mcp-http-tool",
"type": "stdio"
}
}
}
Support
For issues or questions, please visit our mrbean.dev.