Skip to main content
Glama

mcp-llm

by sammcj

MCP LLM

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

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

特徴

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

  • generate_code : 説明に基づいてコードを生成する
  • generate_code_to_file : コードを生成し、特定の行番号でファイルに直接書き込みます。
  • generate_documentation : コードのドキュメントを生成する
  • ask_question : LLMに質問する

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

インストール

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." }

ライセンス

You must be authenticated.

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

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

LLM に他の LLM へのアクセスを提供する MCP サーバー

  1. 特徴
    1. インストール
      1. Smithery経由でインストール
      2. ソースからの手動インストール
      3. サンプルスクリプトの使用
      1. コードを生成する
      2. ファイルにコードを生成
      3. ドキュメントを生成する
      4. 質問する
    2. ライセンス

      Related MCP Servers

      • -
        security
        A
        license
        -
        quality
        A MCP server enabling LLMs to roll dice
        Last updated -
        1
        1
        Python
        MIT License
        • Apple
      • -
        security
        A
        license
        -
        quality
        MCP server for toolhouse.ai. This does not rely on an external llm unlike the official server.
        Last updated -
        1
        Python
        MIT License
      • -
        security
        A
        license
        -
        quality
        An MCP server that connects any MCP client (like Claude or Cursor) with the browser using browser-use, allowing clients to utilize existing LLMs without requiring additional API keys.
        Last updated -
        32
        Python
        Apache 2.0
      • A
        security
        A
        license
        A
        quality
        An MCP server that enables LLMs to perform blockchain operations on the Base network through natural language commands, including wallet management, balance checking, and transaction execution.
        Last updated -
        4
        4
        1
        TypeScript
        MIT License
        • Apple

      View all related MCP servers

      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