npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

linkedin-formatter-mcp

v0.3.0

Published

MCP server exposing LinkedIn Unicode formatting. Local, stdio only, no network.

Readme

linkedin-formatter-mcp

An MCP server that lets an AI assistant style LinkedIn posts with real Unicode.

The problem it solves

LinkedIn has no formatting controls. Every "bold" post is a Unicode substitution, and Markdown does nothing: **bold** pastes in as literal asterisks.

Models are unreliable at this. Script capital B is U+212C, in Letterlike Symbols, not one past script A, because the Mathematical Alphanumeric block has holes where Unicode had already assigned those letters decades earlier. Four ranges need exception tables. A model working from memory gets this subtly wrong, and the failure renders as an empty box on someone's phone.

Models also cannot count LinkedIn posts correctly, because LinkedIn counts UTF-16 code units and a styled character costs two.

This server replaces guessing with a function call.

Setup

Claude Code, in one line:

claude mcp add -s user linkedin-formatter -- npx -y linkedin-formatter-mcp

Every other client takes the same thing as configuration:

{
  "mcpServers": {
    "linkedin-formatter": {
      "command": "npx",
      "args": ["-y", "linkedin-formatter-mcp"]
    }
  }
}

npx fetches the server on demand, so there is nothing to install first. To pin it locally instead:

npm install -g linkedin-formatter-mcp

then use "command": "linkedin-formatter-mcp" with no args.

Where the configuration goes (Node 18 or newer):

  • Claude Desktop: claude_desktop_config.json (Settings, then Developer, then Edit Config)
  • Cursor: ~/.cursor/mcp.json
  • Windsurf: ~/.codeium/windsurf/mcp_config.json
  • Codex: an [mcp_servers.linkedin-formatter] block with command = "npx" and args = ["-y", "linkedin-formatter-mcp"]

Restart the client after registering. MCP servers attach at session start, so a server added to a running session stays invisible until then. If you need the same conversion right now, the linkedin-fmt CLI is the identical core and needs no restart: npx -y linkedin-fmt style "Shipped" --bold.

Once registered and reloaded, the tool descriptions reach the model automatically at session start, so it learns the .linkedin convention without being told.

Tools

| Tool | Purpose | |---|---| | apply_family | Style text as a font family, with optional bold/italic. The main one. | | apply_style | Style text by an exact style id | | apply_mark | Layer strikethrough or underline | | strip_formatting | Convert styled text back to plain ASCII | | count_characters | Count against the 3,000 limit, in UTF-16 units | | list_families | The 11 families and which axes each supports | | list_styles | Every letterform style and combining mark id | | tier_samples | One hook line rendered in the three tiers, one line each, to show before asking |

All eight are read-only, non-destructive, closed-world pure functions, and are annotated as such so clients need not prompt before running them.

Guarantees

No network. stdio transport only. The server opens no socket, makes no request, and has no telemetry. HTTP was deliberately not implemented: a listening socket, even on localhost, would need its own threat model against a tool whose point is that nothing leaves the machine.

No filesystem access. It transforms text handed to it. It does not read or write files, including the .linkedin files it talks about.

Fail closed. A character with no equivalent in the target style is left unchanged rather than swapped for a lookalike.

Honest results. Unicode is sparse: monospace has no bold, script has no italic. Asking for an unavailable axis drops it and says so in the response, so the model does not report bold text that is not bold.

Lossless round trip. strip_formatting reverses styling exactly, for every family, asserted over the full A-Za-z0-9 range.

Working with the extension

The companion VS Code extension renders any .linkedin file as a live LinkedIn card beside the editor, so a human can see and adjust what the model produced:

code --install-extension kaushiknaru.linkedin-formatter

Cursor and Windsurf take the same id from Open VSX, with cursor or windsurf in place of code.

Because the formatting is the text, both sides edit the same file with no sync step and no markup layer to reconcile.

A note for agents sharing a file with a human: re-read before writing. The user may have edited it since you last looked.

Related

  • VS Code extension: LinkedIn Formatter
  • CLI: linkedin-fmt, the same core for shell and scripts

All three share one conversion core with no duplicated logic.

Licence

MIT