Basic information
About LlamaIndex MCP Server
LlamaIndex integrates LlamaIndexTS to deliver AI question answer and code generation with top LLM providers for documentation writing.
LlamaIndex is a MCP server in the Ai Ml category listed in the AddMCP.net directory, published by sammcj. Supported transport: stdio. Runtime: JavaScript. License: MIT. The repository has 79 GitHub stars. Source code is hosted on github.com. Related topics: ai-ml, anthropic, bedrock, claude, community.
Setup
{
"mcpServers": {
"llm": {
"command": "npx",
"args": [
"-y",
"@sammcj/mcp-llm"
]
}
}
}
{
"mcpServers": {
"llm": {
"command": "npx",
"args": [
"-y",
"@sammcj/mcp-llm"
]
}
}
}
{
"servers": {
"llm": {
"command": "npx",
"args": [
"-y",
"@sammcj/mcp-llm"
]
}
}
}
LlamaIndex MCP Server config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"llm": {
"command": "npx",
"args": [
"-y",
"@sammcj/mcp-llm"
]
}
}
}
LlamaIndex MCP Server tools
Tool list not available yet
This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
Overview
What is LlamaIndex?
MCP LLM is an MCP server that provides access to LLMs using the LlamaIndexTS library. It offers tools for code generation, documentation, and question answering, intended for developers who want to integrate LLM capabilities into AI‑powered coding workflows.
How to use LlamaIndex?
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.
Key features of LlamaIndex
- 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.
Use cases of LlamaIndex
- Rapidly scaffold functions or algorithms from a description.
- Insert generated code into an existing file at a precise location.
- Automatically produce JSDoc or similar docs for a code snippet.
- Get answers to programming questions with optional contextual hints.
Frequently asked questions
1 What tools does MCP LLM provide?
It provides four tools: generate_code, generate_code_to_file, generate_documentation, and ask_question.
2 How do I install MCP LLM?
You can install it automatically via Smithery using the command npx -y @smithery/cli install @sammcj/mcp-llm --client claude, or manually by cloning the repository and running npm install and npm run build.
3 Can I generate code directly into a file?
Yes, the generate_code_to_file tool accepts a filePath, lineNumber, and replaceLines parameter to write generated code to a specific file and line.
4 Does the server support relative file paths in `generate_code_to_file`?
Yes. If a relative path is provided, it is resolved relative to the current working directory of the MCP server.
5 Which LLM library does MCP LLM use?
It uses the LlamaIndexTS library under the hood.
Videos
Tutorials, guides, and showcases related to LlamaIndex MCP Server. The player loads when you press play.
Videos belong to their creators. Relevance is approximate; check the channel and description before following setup steps.
Comments
No comments yet
Be the first to share feedback about this listing. Sign in to leave a comment.
Sign In