MCP LLM

by sammcj

79 stars
561 downloads
Not rated
GitHub Website

About

An MCP server that provides LLMs access to other LLMs

Details

Author
sammcj
GitHub stars
79
Downloads
561
Categories
AI

- Generate code from a natural‑language description.
- Write generated code directly to a file at a specific line.
- Generate documentation for existing code.
- Ask open‑ended questions to the LLM.
- Supports both relative and absolute file paths.

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name MCP LLM
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

Install via Smithery with npx -y @smithery/cli install @sammcj/mcp-llm --client claude, or manually from source by cloning the repository, running npm install and npm run build, then updating your MCP client configuration. Use the provided tools (generate_code, generate_code_to_file, generate_documentation, ask_question) by sending JSON‑formatted requests.

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "mcp llm": {
            "mcp-llm": {
                "command": "npx",
                "args": [
                    "-y",
                    "@smithery/cli",
                    "install",
                    "@sammcj/mcp-llm",
                    "--client",
                    "claude"
                ]
            }
        }
    }
}

McpServers

{
    "mcp-llm": {
        "command": "npx",
        "args": [
            "-y",
            "@smithery/cli",
            "install",
            "@sammcj/mcp-llm",
            "--client",
            "claude"
        ]
    }
}

MCP LLM

smithery badge

An MCP server that provides access to LLMs using the LlamaIndexTS library.

I put some LLMs in your MCP for your LLMs

<a href="https://glama.ai/mcp/servers/i1gantlfrs">
mcp-llm MCP server
</a>

Features

This MCP server provides the following tools:

- generate_code: Generate code based on a description
- generate_code_to_file: Generate code and write it directly to a file at a specific line number
- generate_documentation: Generate documentation for code
- ask_question: Ask a question to the LLM

call a llm to generate code
call a reasoning llm to write some documentation

Installation

Installing via Smithery

To install LLM Server for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install @sammcj/mcp-llm --client claude

Manual Install From Source

1. Clone the repository
2. Install dependencies:

npm install

3. Build the project:

npm run build

4. Update your MCP configuration

Using the Example Script

The repository includes an example script that demonstrates how to use the MCP server programmatically:

node examples/use-mcp-server.js

This script starts the MCP server and sends requests to it using curl commands.

Examples

Generate Code

{
  "description": "Create a function that calculates the factorial of a number",
  "language": "JavaScript"
}

Generate Code to File

{
  "description": "Create a function that calculates the factorial of a number",
  "language": "JavaScript",
  "filePath": "/path/to/factorial.js",
  "lineNumber": 10,
  "replaceLines": 0
}

The generate_code_to_file tool supports both relative and absolute file paths. If a relative path is provided, it will be resolved relative to the current working directory of the MCP server.

Generate Documentation

{
  "code": "function factorial(n) {\n  if (n <= 1) return 1;\n  return n * factorial(n - 1);\n}",
  "language": "JavaScript",
  "format": "JSDoc"
}

Ask Question

{
  "question": "What is the difference between var, let, and const in JavaScript?",
  "context": "I'm a beginner learning JavaScript and confused about variable declarations."
}

License

- MIT LICENSE

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.