localhostmcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@localhostmcpmake a GET request to localhost:3000/api/users"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Localhost MCP
localhostmcp is an MCP server that allows LLMs to send HTTP requests to your local development server.
Installation
You can try out piston-mcp locally without cloning it.
Install uv
To try out piston-mcp you'll need to install uv:
# On MacOS and Linux
curl -LsSf https://astral.sh/uv/install.sh | sh
# On Windows
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"Install MCP Client
You will also need to download an MCP client to connect to piston-mcp, such as Claude Desktop.
Update MCP Client Configuration
Update the MCP client's configuration with the following configuration to connect to piston-mcp:
{
"mcpServers": {
"localhostmcp": {
"command": "uv",
"args": [
"tool",
"run",
"--from",
"git+https://github.com/alvii147/localhostmcp.git@main",
"localhostmcp"
]
}
}
}Related MCP server: screenshot-mcp
Usage
Once you've followed the steps above, your MCP client should be able to send requests to localhost for you:

Acknowledgements
Available Tools
1 toolrequestA
Sends an HTTP request to localhost at given port, with given HTTP method, request body, and headers.
Parameters
port : int Port to send request to (e.g. port=8000 hits http://localhost:8000).
path : str Path to send request to (e.g. path=/foo/bar hits http://localhost:{port}/foo/bar).
method : str, HTTP method for request (e.g. GET, POST).
data : str, optional HTTP request body. Note: content type header is not set automatically, and must be set through "headers".
headers : dict, optional HTTP headers (e.g. {"Content-Type": "application/json"}).
Returns
int Response status code.
str Response data.
| Name | Required | Description | Default |
|---|---|---|---|
| port | Yes | ||
| path | Yes | ||
| method | Yes | ||
| data | No | ||
| headers | No |
Output Schema
| Name | Required | Description |
|---|---|---|
| result | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations provided, so the description must fully disclose behavior. It notes that the content type header is not set automatically, which is a useful behavioral detail. However, it omits other traits like potential side effects or security considerations, making it adequate but not thorough.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is well-structured with clear sections (Parameters, Returns) and uses concise language. Every sentence adds value, and it avoids redundancy.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
The description covers the main functionality and return values. It is missing details on error handling, timeouts, or security, but for a straightforward tool it is largely complete. The presence of an output schema reduces the need for additional return value explanation.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Despite 0% schema coverage, the description provides comprehensive details for each parameter: port with example, path with example, method with common values, data with note about headers, and headers with example. This adds significant meaning beyond the bare schema.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool sends an HTTP request to localhost with specific parameters. It uses a specific verb ('sends') and resource ('HTTP request to localhost'), making the purpose unambiguous.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
No guidance on when to use this tool or alternatives. Even though no siblings exist, the description does not explain appropriate contexts, such as when to set headers or choose methods, leaving the agent without usage boundaries.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
1 tool update
v0.1.0- First observed
request
TDQS
Only one tool exists, so there is no possibility of confusion between tools.
With a single tool, naming is trivially consistent.
One tool for making HTTP requests to localhost is slightly thin but appropriate for a focused utility.
Covers core HTTP request parameters (method, path, data, headers) but limited to localhost and lacks automatic content-type handling.
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 Connectors
Debug webhooks from your AI agent: inspect and replay captured webhooks on localhost.
Enable secure connectivity between Sentry issues and debugging data, and LLM clients, using a Model Context Protocol (MCP) server.
Reliable web access for AI agents: smart HTTP, rotating proxies, and full-browser rendering.
Instant no-signup webhook & HTTP-request inspector for testing webhooks and agent tool-callbacks.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables LLMs to make HTTP requests with OAuth2, session cookies, retry logic, and cURL command generation, while providing security features like SSRF protection and TLS enforcement.1MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to take screenshots of localhost development servers for visual verification of UI changes, reducing manual debugging cycles.40MIT
- AlicenseAqualityCmaintenanceEnables AI agents to send HTTP requests to any endpoint with full control over methods, headers, query parameters, and request bodies.117MIT
- AlicenseAqualityCmaintenanceConnects AI tools to local dev servers, enabling them to view pages, call APIs, read/edit files, and run commands with safety guardrails.13MIT
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/alvii147/localhostmcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server