Skip to main content
Glama
alvii147

localhostmcp

by alvii147

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:

Claude Demo

Acknowledgements

Available Tools

1 tool
requestA

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.

ParametersJSON Schema
NameRequiredDescriptionDefault
portYes
pathYes
methodYes
dataNo
headersNo

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

A3.9/5.0
Behavior3/5

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.

Conciseness5/5

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.

Completeness4/5

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.

Parameters5/5

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.

Purpose5/5

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.

Usage Guidelines2/5

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. 1 tool updatev0.1.0
    • First observedrequest

TDQS

A4.1/5.0
Disambiguation5/5

Only one tool exists, so there is no possibility of confusion between tools.

Naming Consistency5/5

With a single tool, naming is trivially consistent.

Tool Count4/5

One tool for making HTTP requests to localhost is slightly thin but appropriate for a focused utility.

Completeness4/5

Covers core HTTP request parameters (method, path, data, headers) but limited to localhost and lacks automatic content-type handling.

Maintenance

ActivityInactive
ResponsivenessNo issues

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

Related MCP Servers

  • A
    license
    A
    quality
    D
    maintenance
    Enables 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.
    1
    MIT
  • A
    license
    A
    quality
    C
    maintenance
    Enables AI agents to send HTTP requests to any endpoint with full control over methods, headers, query parameters, and request bodies.
    1
    17
    MIT

Latest Blog Posts

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