Latest Socket ResearchMalicious Chrome Extension Performs Hidden Affiliate Hijacking.Details
Socket
Book a DemoInstallSign in
Socket

mcx

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mcx

MCP server runner

latest
npmnpm
Version
0.2.1
Version published
Maintainers
1
Created
Source

mcx

CLI for running mcp servers with mathom.

Installation

npm install -g mcx

Build from source

git clone https://github.com/stephenlacy/mathom.git
cd mathom/mcx
npm install
npm run build
npm link

Configuration

mcx requires connection to your mathom instance. Set the environment variable or use the default:

export MATHOM_URL=http://localhost:5050

Authentication

Authenticate with your Mathom instance:

mcx auth login

Usage

Launch an MCP server by name or package:

mcx my-mcp-server

mcx @modelcontextprotocol/server-filesystem

mcx my-server -- --custom-arg value

You can also use the inspector:

npx @modelcontextprotocol/inspector mcx @modelcontextprotocol/server-everything

Claude/Cursor

~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "myServer": {
      "command": "mcx",
      "args": ["-y", "my-mcp-server"],
      "env": {
        "MATHOM_URL": "http://localhost:5050"
      }
    }
  }
}

Troubleshooting

Connection refused

  • Verify Mathom instance is running
  • Check MATHOM_URL environment variable
  • Ensure Docker is running

Authentication failed

  • Run mcx auth login to refresh tokens
  • Verify Mathom dashboard is responding

Container startup timeout

  • Ensure Docker images are available (check if you built the local images)
  • Check system resource availability
  • Review logs with docker logs

License

MIT License

Contributing

Contributions are welcome!

FAQs

Package last updated on 13 Aug 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts