mcp-llm
MCP server for interacting with LLMs using LlamaIndexTS
pinned to #4dc292cupdated 3 weeks ago
Ask your AI client: “install mcps/mcp-llm”.
Requires the metahub MCP server installed in your client. Set up MCP.
mh install mcps/mcp-llmmetahub onboarded this repo on the author's behalf.
If you own github.com/sammcj/mcp-llm on GitHub, claim the listing to take over publishing. Your claim preserves the existing eval history and badges; only the curator label is replaced with verified-publisher on your next publish.
Stars
79
Last commit
3 weeks ago
Latest release
published
- #ai
- #anthropic
- #bedrock
- #claude
- #docs
- #documentation
- #llama
- #llamaindex
- #llm
- #mcp
- #mcp-server
- #ollama
- #openai
- #package
- #sammcj
- #smcleod
What this server exposes
Surfaces parsed from this server's source at publish time.
Launches: mcp-llm
Evaluation report
WarningsAutomated checks the publisher passed at publish time — structure, docs, safety, and whether the artifact behaves as claimed.4dc292c· 3 weeks ago
Safety
21Dependencies: known vulnerabilitieswarn
2 high/critical advisories — @modelcontextprotocol/[email protected] (HIGH: GHSA-8r9q-7v3j-jr4g) · @modelcontextprotocol/[email protected] (HIGH: GHSA-w48q-cv73-mx4w)
Update the affected packages, then re-publish. (`npm audit` shows the same data locally.)
LICENSE file at repo root
LICENSE
No sensitive files in the repo
scanned for .env, credentials.json, *.pem, .ssh/, AWS / GCP configs — none found
Release history
1- releasecurrent4dc292cwarn3 weeks ago
Contents
An MCP server that provides access to LLMs using the LlamaIndexTS library.

Features
This MCP server provides the following tools:
generate_code: Generate code based on a descriptiongenerate_code_to_file: Generate code and write it directly to a file at a specific line numbergenerate_documentation: Generate documentation for codeask_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
- Clone the repository
- Install dependencies:
npm install
- Build the project:
npm run build
- 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
Reviews
No reviews yet. Be the first.
Related
brainstorm-mcp
MCP server for multi-round AI brainstorming debates across multiple models
@remote-mcp/example
@remote-mcp/example MCP server
Nanobot
A lightweight personal AI assistant framework
mh install mcps/mcp-llm