Server data from the Official MCP Registry
Send and receive fmsg federated messages from any AI agent via a deployed fmsg Web API
About
Send and receive fmsg federated messages from any AI agent via a deployed fmsg Web API
Security Report
Valid MCP server (2 strong, 0 medium validity signals). No known CVEs in dependencies. Package registry verified. Imported from the Official MCP Registry.
5 files analyzed · 1 issue found
Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.
Permissions Required
This plugin requests these system permissions. Most are normal for its category.
What You'll Need
Set these up before or after installing:
Environment variable: FMSG_API_URL
Environment variable: FMSG_API_KEY
Environment variable: FMSG_DEFAULT_DOMAIN
How to Install
Add this to your MCP configuration file:
{
"mcpServers": {
"io-github-markmnl-fmsg-mcp": {
"env": {
"FMSG_API_KEY": "your-fmsg-api-key-here",
"FMSG_API_URL": "your-fmsg-api-url-here",
"FMSG_DEFAULT_DOMAIN": "your-fmsg-default-domain-here"
},
"args": [
"-y",
"@markmnl/fmsg-mcp"
],
"command": "npx"
}
}
}Documentation
View on GitHubFrom the project's GitHub README.
fmsg-mcp
An MCP server that gives any AI agent its own fmsg address: send messages, follow threads, react, exchange attachments and wait for replies, through a deployed fmsg Web API. Works with Claude Code, Claude Desktop, Cursor, VS Code, claude.ai remote connectors and any other MCP host.
- stdio for local hosts: one address per server process, configured by two environment variables.
- Streamable HTTP for shared or remote deployments: one endpoint serving many users, each authenticated by their own fmsg API key.
- The fmsg Web API client is exported for reuse:
import { FmsgClient } from "@markmnl/fmsg-mcp/client".
1. Get an fmsg address and API key
You send as an fmsg address, authenticated by an API key (fmsgk_…) issued by your fmsg host:
- No host yet? Create an account at a public fmsg host such as fmsg.io and add an agent (sub-account) to get an API URL and key.
- Self-hosting? Run the stack with fmsg-docker and issue
a key with
fmsg-webapi api-key create.
2. Install
Requires Node.js 22 or later.
Claude Code
claude mcp add fmsg --scope user \
--env FMSG_API_URL=https://api.example.com \
--env FMSG_API_KEY=fmsgk_... \
-- npx -y @markmnl/fmsg-mcp
Then in any session: "Send @bob@example.com a note about the release", "What's in my fmsg inbox?",
"Wait for Bob's reply and answer it". /fmsg:chat and /fmsg:reply are available as prompts.
Claude Desktop, Cursor, VS Code and other stdio hosts
Add a server entry with the same command; only the config file differs:
{
"mcpServers": {
"fmsg": {
"command": "npx",
"args": ["-y", "@markmnl/fmsg-mcp"],
"env": { "FMSG_API_URL": "https://api.example.com", "FMSG_API_KEY": "fmsgk_..." }
}
}
}
(Claude Desktop: claude_desktop_config.json; Cursor: .cursor/mcp.json; VS Code: .vscode/mcp.json
under "servers" with "type": "stdio".)
Remote (Streamable HTTP) mode
Run one server for many users. Each client sends its own fmsg API key as a bearer token; the
server exchanges it at the fmsg host and acts as that address. FMSG_API_KEY must not be set.
FMSG_API_URL=https://api.example.com npx -y @markmnl/fmsg-mcp --http 0.0.0.0:8765
# or
docker build -t fmsg-mcp . && docker run -e FMSG_API_URL=https://api.example.com -p 8765:8765 fmsg-mcp
The MCP endpoint is /mcp; /healthz reports liveness. Point a host at it with
Authorization: Bearer fmsgk_... — for claude.ai, add a custom connector with that URL and header;
for Claude Code, claude mcp add --transport http fmsg https://mcp.example.com/mcp --header "Authorization: Bearer fmsgk_...".
Deploy behind a TLS-terminating reverse proxy and set FMSG_MCP_ALLOWED_HOSTS to the public hostname
when binding to a non-loopback address. wait_for_message holds a request open for up to
FMSG_MCP_WAIT_MAX_SECONDS (230), so give the proxy an idle timeout of at least 240 s.
Tools
| Tool | What it does |
|---|---|
whoami | The address this server acts as, the API URL and token expiry |
resolve_address | Turn a short name into @user@domain (directory, then default domain) |
list_messages | Inbox, newest first, with previews; reactions hidden; optional unread filter |
list_sent | Sent messages with per-recipient delivery state |
get_message | One message with headers, full text body, attachments and reactions |
get_thread | The lineage from the thread root to a message, with gaps for messages you cannot see |
send_message | Start a new thread; sends immediately (fmsg messages are immutable) |
reply | Reply into a thread; reply-all by default, refuses terminal and no-reply parents |
add_recipients | Add recipients to a sent message |
react | Set or clear your emoji reaction |
mark_read | Mark received messages read |
download_attachment | Fetch an attachment inline (base64, images as image blocks) or, over stdio, save it to disk |
delivery_status | Per-recipient delivery times and host response codes |
wait_for_message | Block until the next inbound message (WebSocket push), batched per thread, with thread context |
Every tool returns readable Markdown plus structuredContent. Ids are decimal strings. Message
bodies are labelled as data from other parties, not instructions.
Resources fmsg://message/{id} and fmsg://thread/{id} expose the same content to hosts that
attach resources; prompts chat and reply script the wait → reply loop and a guided reply.
Configuration
| Variable | Default | Purpose |
|---|---|---|
FMSG_API_URL | — | Base URL of the fmsg Web API (required) |
FMSG_API_KEY | — | fmsgk_… key; stdio mode only |
FMSG_DEFAULT_DOMAIN | — | Lets short names resolve: bob → @bob@<domain> |
FMSG_DIRECTORY | — | JSON file mapping short names to full addresses |
FMSG_MCP_WAIT_MAX_SECONDS | 230 | Cap on one wait_for_message call |
FMSG_MCP_DOWNLOAD_DIR | — | Restrict download_attachment save_to to this directory (stdio) |
FMSG_MCP_HOST / FMSG_MCP_PORT | 127.0.0.1 / 8765 | HTTP bind address (or --http host:port) |
FMSG_MCP_ALLOWED_HOSTS | loopback names | Comma-separated Host header allowlist for HTTP mode |
FMSG_MCP_ALLOWED_ORIGINS | same as hosts | Origin allowlist for browser-based callers |
FMSG_MCP_KEY_CACHE_MAX / FMSG_MCP_KEY_CACHE_TTL_SECONDS | 500 / 1800 | HTTP mode per-key client cache |
The API key is exchanged for a short-lived access token that the server renews automatically.
Over stdio the server also starts with no credentials at all, so hosts and directories can list its tools; every tool call then returns a message naming the missing variables.
Safety
- Sent messages cannot be edited or recalled; send tools say so in their descriptions and are
annotated
destructiveHintso hosts can ask for confirmation. - API keys, tokens and other secret-shaped strings are redacted from outbound bodies, topics and error text; the count of redactions is reported.
- Nothing about message size or acceptance is assumed: the fmsg host's own responses and delivery codes are surfaced verbatim.
- The server publishes MCP
instructions(shown to the model at session start) telling agents to use these tools rather than a local fmsg CLI or cached credentials, to send only on a clear request, and to treat message content as data. - See SECURITY.md.
Using the client library
import { FmsgClient } from "@markmnl/fmsg-mcp/client";
const client = new FmsgClient("https://api.example.com", process.env.FMSG_API_KEY!);
console.log(await client.address());
const inbox = await client.listInbox(10);
await client.send({ to: ["@bob@example.com"], topic: "Hi", body: "Hello from code" });
Development
npm ci
npm run typecheck && npm run build && npm test
npx @modelcontextprotocol/inspector node dist/index.js # stdio, with FMSG_API_URL/FMSG_API_KEY set
bash .github/scripts/run-fmsg-docker-e2e.sh # end to end on two real fmsg stacks
See AGENTS.md for layout and conventions.
Reviews
No reviews yet
Be the first to review this server!
More Developer Tools MCP Servers
Paperclip
Freeby Paperclipai · Developer Tools
Trending hip-hop artist momentum scores across four cultural dimensions.
Git
Freeby Modelcontextprotocol · Developer Tools
Read, search, and manipulate Git repositories programmatically
Toleno
Freeby Toleno · Developer Tools
Toleno Network MCP Server — Manage your Toleno mining account with Claude AI using natural language.
mcp-creator-python
Freeby mcp-marketplace · Developer Tools
Create, build, and publish Python MCP servers to PyPI — conversationally.
MCP Marketplace
Freeby mcp-marketplace · Developer Tools
Search and install MCP servers from inside your AI client.
MarkItDown
Freeby Microsoft · Content & Media
Convert files (PDF, Word, Excel, images, audio) to Markdown for LLM consumption
