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

@samscarrow/lmstudio-mcp

v2.0.0

Published

LM Studio MCP server with concurrent multi-agent support and memory safety

Readme

@samscarrow/lmstudio-mcp

LM Studio MCP Server with concurrent multi-agent support and memory safety features.

Quick Start

# Run directly with NPX (recommended)
npx @samscarrow/lmstudio-mcp

# Or install globally
npm install -g @samscarrow/lmstudio-mcp
lmstudio-mcp

Requirements

  • Node.js 16+ - To run this NPM package
  • Python 3.7+ - For the MCP server itself
  • LM Studio - Running with a model loaded

The Python components are automatically downloaded and set up on first run.

Configuration

Environment Variables

# LM Studio API endpoint (default: http://localhost:1234/v1)
export LMSTUDIO_API_BASE="http://localhost:1234/v1"

# Logging level
export LOG_LEVEL="INFO"

Command Line Options

# Custom API base
npx @samscarrow/lmstudio-mcp --api-base http://192.168.1.100:1234/v1

# Custom log level
npx @samscarrow/lmstudio-mcp --log-level DEBUG

# Show help
npx @samscarrow/lmstudio-mcp --help

# Show version
npx @samscarrow/lmstudio-mcp --version

Features

  • 🚀 Concurrent Multi-Agent Support - Handle multiple requests simultaneously
  • 🛡️ Memory Safety - Intelligent memory management and limits
  • 📊 Real-time Monitoring - Track performance and resource usage
  • 🔄 Auto-retry Logic - Robust error handling and recovery
  • 🎯 Load Balancing - Distribute requests across available resources
  • 📈 Scaling Support - Handle increased load automatically

Programmatic Usage

You can also use this package programmatically in your Node.js applications:

const LMStudioMCP = require('@samscarrow/lmstudio-mcp');

// Create instance with custom options
const server = new LMStudioMCP({
    apiBase: 'http://localhost:1234/v1',
    logLevel: 'INFO'
});

// Start the server
server.start()
    .then(() => console.log('Server started'))
    .catch(console.error);

Troubleshooting

Python Not Found

If you get Python-related errors:

# Install Python 3 (macOS with Homebrew)
brew install python3

# Install Python 3 (Ubuntu/Debian)
sudo apt update && sudo apt install python3 python3-pip

# Windows - download from python.org

LM Studio Connection Issues

  • Ensure LM Studio is running
  • Check that a model is loaded in LM Studio
  • Verify the API endpoint is correct (default: http://localhost:1234/v1)
  • Try using 127.0.0.1 instead of localhost

Port Already in Use

The MCP server uses stdio communication, not HTTP ports. If you see port errors, they're likely from LM Studio itself.

Installation Locations

Files are installed to:

  • macOS/Linux: ~/.lmstudio-mcp/
  • Windows: %USERPROFILE%\.lmstudio-mcp\

Development

# Clone the repository
git clone https://github.com/samscarrow/lmstudio-mcp.git

# Install dependencies  
npm install

# Run locally
node bin/lmstudio-mcp.js

License

MIT - see LICENSE file for details.

Support

  • 📖 Documentation: https://github.com/samscarrow/lmstudio-mcp
  • 🐛 Issues: https://github.com/samscarrow/lmstudio-mcp/issues
  • 💬 Discussions: https://github.com/samscarrow/lmstudio-mcp/discussions

Related