Home / Servers / Text Toolkit / url_encode

Url encode

An MCP tool from the Text Toolkit server, hosted on mcp.hjlabs.in.

Percent-encode text for a URL. "component" encodes everything but unreserved characters (use for query values and path segments); "full" leaves URL syntax such as :/?#&= intact (use on a whole URL).

Name on the gateway: text__url_encode · read-only.

Parameters

NameTypeDescription
text requiredstringText or URL to encode.
modecomponent | fullDefault "component".
space_as_plusbooleanEncode spaces as + instead of %20, as HTML forms do. Default false.

How to call it

Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:

call_tool arguments
{
  "name": "text__url_encode",
  "arguments": {
    "text": "…"
  }
}

Or connect the Text Toolkit server directly, which lists 43 tools including this one:

Run in your terminal
claude mcp add --transport http hj-text https://mcp.hjlabs.in/mcp/text \
  --header "Authorization: Bearer YOUR_API_KEY"

Try asking

Use the url encode tool with text set to ….

More from Text Toolkit