MCP LLM
About
An MCP server that provides LLMs access to other LLMs
Details
- Author
- sammcj
- GitHub stars
- 79
- Downloads
- 561
- Categories
- AI
Jump to
- 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:
- Download and install Highlight from highlightai.com/download
- Navigate to the plugins tab and select "Add Custom Plugin"
-
Configure the plugin with the settings below
Plugin Name
MCP LLMCommand (node, npx, python, etc.)Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.
- 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
An MCP server that provides access to LLMs using the LlamaIndexTS library.

<a href="https://glama.ai/mcp/servers/i1gantlfrs">
</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


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
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.
