Skip to content

Instantly share code, notes, and snippets.

@shadowbq
Created April 1, 2026 14:08
Show Gist options
  • Select an option

  • Save shadowbq/0f612f4a1a725743ce6a56fdece0a312 to your computer and use it in GitHub Desktop.

Select an option

Save shadowbq/0f612f4a1a725743ce6a56fdece0a312 to your computer and use it in GitHub Desktop.
LM Studio MCP Configuration Guide with awesome-mcp server discovery

LM Studio MCP Configuration Guide

Overview

This guide explains how to configure the Model Context Protocol (MCP) for use with LM Studio and helps you discover new MCP servers from the awesome-mcp repository.


What is LM Studio MCP?

LM Studio is a desktop application that allows you to run local LLMs with various model interfaces. The Model Context Protocol (MCP) enables LM Studio to connect to external tools, databases, and services through a standardized protocol.


Getting Started

Prerequisites

  • Operating System: Windows, macOS, or Linux
  • LM Studio: Download from lmstudio.ai
  • Node.js (Optional for advanced setups)

Basic Configuration

1. Open LM Studio Settings

  1. Launch the LM Studio desktop application
  2. Go to Settings (βš™οΈ icon or menu)
  3. Navigate to the MCP Servers section

2. Add an MCP Server

Click "Add Server" and provide:

  • Name: A unique identifier for your server
  • Command: The executable to run (e.g., npx, node)
  • Arguments: Additional flags or options
  • Environment Variables (Optional): Set key-value pairs

Example configuration:

{
  "name": "github-search",
  "command": "npx",
  "args": ["-y", "@modelcontextprotocol/server-filesystem"],
  "env": {
    "HOME": "${HOME}"
  }
}

Finding New MCP Servers: awesome-mcp

The awesome-mcp repository is your go-to resource for discovering new and maintained Model Context Protocol servers! πŸš€

What is awesome-mcp?

awesome-mcp is a curated collection of MCP servers that includes:

βœ… Official servers from the MCP specification maintainers
βœ… Community-built servers created by developers worldwide
βœ… Usage examples and documentation links
βœ… Maintenance status indicators to help you choose reliable projects

How to Browse awesome-mcp

  1. Visit: https://github.com/terry-iverson/awesome-mcp
  2. Scroll through the categorized list of servers
  3. Check each repository's README for installation instructions
  4. Look for stars, forks, and recent commits as indicators of active maintenance

Popular Categories in awesome-mcp

  • Development Tools: Git, Docker, npm, etc.
  • Cloud Services: AWS, GCP, Azure tools
  • Databases: PostgreSQL, MongoDB, Redis connectors
  • File System: File operations, cloud storage access
  • Custom Servers: Community-specific implementations

Configuration Example

Here's a complete example of adding an MCP server:

{
  "id": "my-first-mcp-server",
  "name": "GitHub Issues Helper",
  "command": "npx",
  "args": [
    "-y",
    "@modelcontextprotocol/server-git"
  ],
  "env": {},
  "transport": "stdio"
}

Best Practices

  1. Use environment variables for sensitive data (API keys, tokens)
  2. Read each server's documentation before deploying
  3. Check security permissions - MCP servers can access your system
  4. Start with simple configurations to understand the protocol
  5. Join the community on GitHub or Discord for support

Troubleshooting Common Issues

Issue Solution
Connection refused Ensure the server executable exists and is in PATH
Authentication failed Verify API keys/tokens are correctly set in environment variables
Command not found Add npx -y for one-time installs or specify full paths

Additional Resources


Quick Command Reference

# Install a specific MCP server globally
npm install -g @modelcontextprotocol/server-name

# Run with npx (no global install needed)
npx -y @modelcontextprotocol/server-name

# Test your configuration
mcp-cli test-config --file path/to/config.json

Happy configuring! πŸŽ‰

Remember: awesome-mcp is always your best friend when looking for new MCP servers!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment