Skip to main content
Glama

MCP LLM

鍛冶屋のバッジ

LlamaIndexTS ライブラリを使用して LLM へのアクセスを提供する MCP サーバー。

私はあなたのLLMのためにあなたのMCPにいくつかのLLMを入れました

特徴

この MCP サーバーは次のツールを提供します。

  • generate_code : 説明に基づいてコードを生成する

  • generate_code_to_file : コードを生成し、特定の行番号でファイルに直接書き込みます。

  • generate_documentation : コードのドキュメントを生成する

  • ask_question : LLMに質問する

LLMを呼び出してコードを生成する推論LLMを呼び出してドキュメントを作成する

Related MCP server: MCP LLMS-TXT Documentation Server

インストール

Smithery経由でインストール

Smithery経由で Claude Desktop 用の LLM サーバーを自動的にインストールするには:

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

ソースからの手動インストール

  1. リポジトリをクローンする

  2. 依存関係をインストールします:

npm install
  1. プロジェクトをビルドします。

npm run build
  1. MCP構成を更新する

サンプルスクリプトの使用

リポジトリには、MCP サーバーをプログラムで使用する方法を示すサンプル スクリプトが含まれています。

node examples/use-mcp-server.js

このスクリプトは MCP サーバーを起動し、curl コマンドを使用してサーバーにリクエストを送信します。

コードを生成する

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

ファイルにコードを生成

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

generate_code_to_fileツールは、相対パスと絶対パスの両方をサポートします。相対パスを指定した場合、MCP サーバーの現在の作業ディレクトリを基準として解決されます。

ドキュメントを生成する

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

質問する

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

ライセンス

Deploy Server
A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/sammcj/mcp-llm'

If you have feedback or need assistance with the MCP directory API, please join our Discord server