Skip to main content

Morse Code MCP Server

Connect Claude, ChatGPT, Cursor or VS Code to our free MCP server, and your AI assistant can translate text to Morse code and back. No account or API key.

MCP (Model Context Protocol) is an open standard that lets AI assistants use tools on other websites. Add this server to your assistant, and it can translate text to Morse code, decode Morse code and show the Morse code alphabet, with the same rules as our translator.

Server URL

https://morsecodetranslator.com/mcp
Transport
Streamable HTTP
Sign-in
None: no account, no API key
Access
Read-only
Limit
60 requests a minute

Connect your assistant

Every client below uses the server URL above. The name morse is only a label: you can choose another one.

Claude Code

Run this command in a terminal. Add --scope user before the name to use the server in all your projects.

Terminal: Claude Code
claude mcp add --transport http morse https://morsecodetranslator.com/mcp

Claude

On claude.ai or in Claude Desktop:

  1. Open Settings, then Connectors.
  2. Select Add custom connector.
  3. Enter the name Morse Code Translator and the server URL, then select Add.

ChatGPT

ChatGPT connects to a custom MCP server in developer mode:

  1. Open Settings, then Apps & Connectors, and turn on Developer mode under Advanced settings.
  2. Create a connector with the name Morse Code Translator and the server URL.
  3. Choose No authentication, then create it.

Cursor

Add the server to ~/.cursor/mcp.json for all your projects, or to .cursor/mcp.json in one project:

~/.cursor/mcp.json
{
  "mcpServers": {
    "morse": {
      "url": "https://morsecodetranslator.com/mcp"
    }
  }
}

VS Code

Add the server to .vscode/mcp.json in your workspace, or run MCP: Add Server from the Command Palette:

.vscode/mcp.json
{
  "servers": {
    "morse": {
      "type": "http",
      "url": "https://morsecodetranslator.com/mcp"
    }
  }
}

Other clients

Most other clients take the server URL directly. A client that can only start local servers can reach this one through mcp-remote, which needs Node.js:

JSON
{
  "mcpServers": {
    "morse": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://morsecodetranslator.com/mcp"
      ]
    }
  }
}

Try it

After you connect the server, ask your assistant in your own words, for example:

  • Translate “Happy birthday” into Morse code.
  • What does .. / .-.. --- ...- . / -.-- --- ..- mean?
  • Show me the Morse code for the digits 0 to 9.
  • Write my name in Morse code and give me a link to hear it.

Tools

Every tool is read-only. Each translation ends with a link to our translator with the code already in it, where you can play the code as sound or download it.

text_to_morseText to Morse code

Translates text into International Morse code (letters A-Z, digits 0-9 and common punctuation). Returns the code with "." and "-", one space between letters and " / " between words, lists any characters that have no Morse code, and gives a link to the translator on morsecodetranslator.com with the code filled in.

textstring, required
The text to translate, at most 1000 characters.
Arguments
{
  "text": "Hello world"
}
Result
Morse code:
.... . .-.. .-.. --- / .-- --- .-. .-.. -..

Open it in the Morse code translator to play the sound or download it: https://morsecodetranslator.com/?c=....%20.%20.-..%20.-..%20---%20%2F%20.--%20---%20.-.%20.-..%20-..

morse_to_textMorse code to text

Decodes International Morse code into text. Write dots as "." and dashes as "-"; separate letters with a space and words with " / ", a line break or three spaces. Returns the text in capital letters, lists any groups that are not Morse characters (shown as # in the text), and gives a link to the translator on morsecodetranslator.com with the code filled in.

morsestring, required
The Morse code to decode, at most 5000 characters, for example ".... .. / - .... . .-. .".
Arguments
{
  "morse": ".... . .-.. .-.. --- / .-- --- .-. .-.. -.."
}
Result
Text:
HELLO WORLD

Open it in the Morse code translator to play the sound or download it: https://morsecodetranslator.com/?c=....%20.%20.-..%20.-..%20---%20%2F%20.--%20---%20.-.%20.-..%20-..

morse_alphabetMorse code alphabet

Returns the International Morse code chart: the letters A-Z, the digits 0-9 and punctuation, each with its code.

This tool takes no input.

Result
International Morse code: "." is a dot, "-" a dash. One space separates letters, " / " separates words.

Letters:
A  .-       B  -...     C  -.-.     D  -..
E  .        F  ..-.     G  --.      H  ....
I  ..       J  .---     K  -.-      L  .-..
M  --       N  -.       O  ---      P  .--.
Q  --.-     R  .-.      S  ...      T  -
U  ..-      V  ...-     W  .--      X  -..-
Y  -.--     Z  --..

Digits:
0  -----    1  .----    2  ..---    3  ...--
4  ....-    5  .....    6  -....    7  --...
8  ---..    9  ----.

Punctuation:
.  .-.-.-   ,  --..--   ?  ..--..   '  .----.
!  -.-.--   /  -..-.    (  -.--.    )  -.--.-
&  .-...    :  ---...   ;  -.-.-.   =  -...-
+  .-.-.    -  -....-   _  ..--.-   "  .-..-.
$  ...-..-  @  .--.-.   ¿  ..-.-    ¡  --...-

The chart with sound on the site: https://morsecodetranslator.com/alphabet/

Call it without an assistant

The server speaks JSON-RPC 2.0 over HTTP POST, and needs no session. To test it, call a tool with curl:

Terminal: curl
curl -X POST https://morsecodetranslator.com/mcp \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json, text/event-stream' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"text_to_morse","arguments":{"text":"Hello world"}}}'

Limits and Errors

  • Each IP address (for IPv6, each /64 network) can send 60 requests a minute. Over the limit, the server answers with HTTP 429 and a Retry-After header that says how many seconds to wait.
  • text_to_morse takes up to 1,000 characters in one call and morse_to_text up to 5,000. Your assistant can split longer text into parts.
  • Characters that have no Morse code are left out of the code and listed in the result. Morse code groups that are not a character show as # in the text.
  • When an argument is missing or too long, the tool result has isError: true and a message that says what to change.

Data and Privacy

The server needs no account and sets no cookie. It translates the text or Morse code that it gets and does not store it. Your assistant sends only the tool arguments, not your conversation. Like every request to our servers, a request can appear in our server logs, as our Privacy Policy explains.

Questions

Does it cost anything?

No. The server is free, like the translator on this site.

Which characters does it know?

International Morse code: the letters A to Z, accented Latin letters, the digits 0 to 9 and common punctuation. For Japanese and Russian Morse code, binary and the NATO alphabet, use our other translators.

Can it play the sound?

No, an MCP tool answers with text. Each translation ends with a link to our translator with the code filled in. There you can play it, change the speed and the tone, and download it as an audio file.

Can I use it in my own app?

Yes. Any MCP client can call it, within the limit above. For a translator on your own website, see Embed.