MCP server for making controlled HTTP requests, managing secrets, and generating tools from OpenAPI specifications.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent โ or use 1-click editor setup below.
๐ก Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Inspect callable tools, capabilities, and parameters exposed to AI agents by HAL.
http-getMake an HTTP GET request to a specified URL. Supports secret substitution using {secrets.key} syntax where 'key' corresponds to HAL_SECRET_KEY environment variables.
http-postMake an HTTP POST request to a specified URL with optional body and headers. Supports secret substitution using {secrets.key} syntax in URL, headers, and body where 'key' corresponds to HAL_SECRET_KEY environment variables.
http-putMake an HTTP PUT request to a specified URL with optional body and headers. Supports secret substitution using {secrets.key} syntax in URL, headers, and body where 'key' corresponds to HAL_SECRET_KEY environment variables.
http-patchMake an HTTP PATCH request to a specified URL with optional body and headers. Supports secret substitution using {secrets.key} syntax in URL, headers, and body where 'key' corresponds to HAL_SECRET_KEY environment variables.
http-deleteMake an HTTP DELETE request to a specified URL with optional headers. Supports secret substitution using {secrets.key} syntax in URL and headers where 'key' corresponds to HAL_SECRET_KEY environment variables.
http-headMake an HTTP HEAD request to a specified URL with optional headers (returns only headers, no body). Supports secret substitution using {secrets.key} syntax in URL and headers where 'key' corresponds to HAL_SECRET_KEY environment variables.
HAL is a Model Context Protocol (MCP) server that provides HTTP API capabilities to Large Language Models. It allows LLMs to make HTTP requests and interact with web APIs through a secure, controlled interface. HAL can also automatically generate tools from OpenAPI/Swagger specifications for seamless API integration.
Visit our comprehensive documentation site for detailed guides, examples, and API reference.
{secrets.key} substitution and automatic redactionHAL is designed to work with MCP-compatible clients. Here are some examples:
Add HAL to your Claude Desktop configuration (npx will automatically install and run HAL):
To enable automatic tool generation from an OpenAPI specification and use secrets:
You can also load OpenAPI specs directly from URLs:
HAL supports the following environment variables:
HAL_SWAGGER_FILE: Path or URL to OpenAPI/Swagger specification file (JSON or YAML format). Can be:
/path/to/api.yamlhttps://api.example.com/swagger.json/swagger/v1/swagger.json (combined with HAL_API_BASE_URL)HAL_API_BASE_URL: Base URL for API requests (overrides the servers specified in the OpenAPI spec)HAL_SECRET_*: Secret values for secure substitution in requests (e.g., HAL_SECRET_TOKEN=abc123)HAL_ALLOW_*: URL restrictions for namespaced secrets (e.g., HAL_ALLOW_MICROSOFT="https://azure.microsoft.com/*")HAL_WHITELIST_URLS: Comma-separated list of URL patterns that are allowed (if set, only these URLs are permitted)HAL_BLACKLIST_URLS: Comma-separated list of URL patterns that are blocked (if set, these URLs are denied)HAL provides secure secret management to keep sensitive information like API keys, tokens, and passwords out of the conversation while still allowing the AI to use them in HTTP requests.
Environment Variables: Define secrets using the HAL_SECRET_ prefix:
Template Substitution: Reference secrets in your requests using {secrets.key} syntax:
https://api.example.com/data?token={secrets.token}{"Authorization": "Bearer {secrets.api_key}"}{"username": "{secrets.username}", "password": "{secrets.password}"}Security: The AI never sees the actual secret values, only the template placeholders. Values are substituted at request time.
HAL automatically redacts secret values from all responses sent back to the AI, providing an additional layer of security against credential exposure.
[REDACTED] before sending to the AIBefore (vulnerable):
After (secure):
This protection is automatic and requires no configuration - HAL will redact any secret values regardless of how they appear in responses, ensuring that even if an API or error message attempts to expose credentials, the AI never sees the actual values.
HAL supports organizing secrets into namespaces and restricting them to specific URLs for enhanced security:
Use - for namespace separators and _ for word separators within keys:
Restrict namespaced secrets to specific URLs using HAL_ALLOW_* environment variables:
Understanding how environment variable names become template keys:
Step-by-step breakdown:
HAL_SECRET_ prefix โ AZURE-STORAGE_ACCESS_KEY_ โ Namespace: AZURE-STORAGE, Key: ACCESS_KEYAZURE-STORAGE โ azure.storage (dashes become dots, lowercase)ACCESS_KEY โ access_key (underscores stay, lowercase){secrets.azure.storage.access_key}Scenario 1: Multi-Cloud Application
Factual signals from GitHub, npm, and our automated checks โ not a rating.
No reviews yet โ be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/hal)<a href="https://allmcps.com/mcp/hal"><img src="https://allmcps.com/api/badge/hal?style=directory" alt="HAL on AllMCPs" /></a>