Fast LLM Agent MCPのロゴ

Fast LLM Agent MCP

コミュニティ
omerbsezer

This repo covers LLM, Agents, MCP Tools, Skills concepts with sample codes: LangChain & LangGraph, AWS Strands Agents, Google Agent Development Kit, Fundamentals.

公開者omerbsezer
リポジトリFast-LLM-Agent-MCP
言語Python
フォーク
35
スター
91
利用可能なツール
0
通信方式stdio
リンク
  • ツールをAIワークフローに接続

    Fast LLM Agent MCPは、対応するAIクライアントやAIエージェントから利用できるMCP機能を提供します。

  • 0個の利用可能なツール

    呼び出し可能なアクションを以下で確認できます。サーバーから提供されている場合は、名前や説明も表示されます。

  • コピーして使える設定

    セットアップ用の設定例を使って、お好みのMCPクライアントにこのサーバーを設定できます。

  • オープンソースの注目度

    リンク先のリポジトリには91件のスターと35件のフォークがあります。

Fast LLM & Agents & MCPs

This repo covers LLM, Agents, MCP Tools, Skills concepts both theoretically and practically:

  • LLM Architectures, RAG, Fine Tuning, Agents, Tools, MCP, Agent Frameworks, Reference Documents.
  • Agent Sample Codes with LangChain & LangGraph (> v1.0.0, prod. version).
  • Agent Sample Codes with AWS Strands Agents.
  • Agent Sample Codes with Google Agent Development Kit (ADK).

LangChain & LangGraph (v1.0.0) - Agent Sample Code & Projects

AWS Strands - Agent Sample Code & Projects

Google ADK - Agent Sample Code & Projects

Table of Contents

Motivation

Why should we use / learn / develop LLM models and app?

  • 🔍 Automate Complex Tasks: Summarization, translation, coding, research, and content creation at scale.
  • 🧠 Enable Intelligent Apps: Build chatbots, copilots, search engines, and data explorers with natural language interfaces.
  • 🚀 Boost Productivity: Save time for users and businesses by handling repetitive or knowledge-based tasks.
  • 💰 High Market Demand: Growing need for LLM apps in SaaS, enterprise tools, customer support, and education.
  • 🧩 Versatile Integration: Combine with tools, APIs, databases, and agents for powerful workflows.
  • 🛠️ Customize for Edge Cases: Fine-tune or adapt for domain-specific needs (finance, legal, health, etc.).
  • 📈 Career Growth: Opens roles in AI engineering, MLOps, product innovation, and technical leadership.
  • 🌍 Global Impact: Democratizes access to information and automation, especially for non-technical users.

LLM Architecture & LLM Models

  • An LLM (Large Language Model) is a type of artificial intelligence model trained on massive amounts of text data to understand and generate human-like language.
  • "Large": Refers to the billions of parameters and the vast datasets used during training.
  • "Language Model": Predicts and generates text, based on the context of the input.
  • LLMs are built on Transformer architecture (uses self-attention to understand context)
  • LLMs are decoder-only transformers.

LLM Core components:

  • Embedding layer: Converts words/tokens into vectors.
  • Positional encoding: Adds word order information.
  • Self-attention mechanism: Captures relationships between tokens.
  • Feed-forward layers: Process token-level information.
  • Layer normalization & residuals: Stabilize and enhance training.
  • Output head: predicts next token or classification result.

There are 2 ways to use LLM Models: API (from AI & Cloud providers), Local

API (from AI & Cloud providers)

Local

Ollama

HuggingFace

LLM Serving with vLLM

  • After downloading open source models, if you want to provide more users (>10), you should run with serving engine.
  • vLLM is a fast and easy-to-use library for LLM inference and serving.
  • https://github.com/vllm-project/vllm

Prompt Engineering

  • Prompt engineering is the practice of designing and refining input prompts to get the best possible responses from LLMs (Large Language Models).
  • Crafting clear, specific instructions.
  • Using structured formats (e.g., lists, JSON, examples).
  • Applying techniques like:
    • Zero-shot prompting (just ask)
    • Few-shot prompting (give examples)
    • Chain-of-thought prompting (ask the model to explain step by step)
  • Why Is It Important?
    • Improves output quality: A well-crafted prompt guides the LLM to produce relevant and accurate results.
    • Boosts model accuracy: Helps LLMs follow complex instructions. Precise instructions reduce false or made-up information.
    • Enables task-specific performance: You can get the model to summarize, translate, generate code, or follow workflows with just a well-written prompt.
    • Cost-efficient: Improves results without retraining or fine-tuning large models.
    • Critical for GenAI apps: Critical for building chatbots, agents, search assistants, and copilots.
    • Supports RAG and Tool Use: Helps orchestrate LLMs with tools, APIs, or knowledge bases in advanced systems.

RAG: Retrieval-Augmented Generation

RAG (Retrieval-Augmented Generation) is a technique that combines external knowledge retrieval with LLM-based text generation. How It Works:

  • Retrieve: Search a knowledge base (e.g., documents, PDFs, databases) using a query. Typically uses vector search with embeddings (e.g., FAISS, Elasticsearch).
  • Augment: Inject the retrieved text into the prompt.
  • Generate: The LLM uses this context to produce a more accurate, grounded response.

Why RAG Is Important:

  • Reduces hallucinations by grounding LLM responses in real data.
  • Keeps answers up to date (LLMs don’t need retraining for every update).
  • Improves trust and transparency (can show sources).
  • Scalable for enterprise: Used in chatbots, search, document QA, agents.

RAG Popular/Common Tools:

  • Embedding Models
    • OpenAI (text-embedding-ada-002),
    • HuggingFace (all-MiniLM-L6-v2, sentence-transformers/all-mpnet-base-v2),
    • AWS Titan embeddings
  • Reranker Models
  • Generation Models
  • Vector stores & Databases:
    • FAISS,
    • Pinecone,
    • Weaviate,
    • Chroma,
    • Milvus,
    • Qdrant

Fine Tuning

Fine-tuning is the process of adapting a pre-trained LLM model to a specific task or domain by further training it on a smaller, specialized dataset. The goal is to make the model better at handling particular requirements without starting from scratch.

How Fine-Tuning Works:

  • Start with a Pre-trained Model: A large model (Llama3.3, Mistral) that has been trained on vast amounts of general data (pdfs) to understand language.
  • Use Domain-Specific Data: Provide a smaller dataset that is specific to the task or domain you care about (e.g., legal text, medical data, customer service).
  • Train the Model: The model’s parameters are updated with this new, specialized data to make it perform better in the target domain, but it retains the general knowledge learned from the larger training dataset.
  • Apply the Fine-Tuned Model: The model is now able to generate or classify text based on the specialized domain, often achieving much higher performance than a general model.

Why Fine-Tuning Is Important:

  • Improves Accuracy: The model becomes more precise in your specific use case, like medical text analysis or customer support chatbots.
  • Saves Time and Resources: You don’t have to train a new model from scratch (which requires vast computing resources and data).
  • Customizes Behavior: Fine-tuning allows you to adjust a model to behave in a way that aligns with your application’s goals (e.g., tone, context, style).

Fine-Tuning Methods:

  • Full Fine-Tuning: Fine-tuning all parameters of a pre-trained model for a specific task. It offers maximum customization but is resource-intensive and requires large datasets
  • Feature-based Fine-Tuning: Only the final layers of a pre-trained model are fine-tuned, with the rest of the model frozen. It’s faster and less resource-heavy than full fine-tuning but may not provide the same level of task-specific optimization.
  • PFET (Progressive Fine-Tuning): Fine-tuning occurs in stages, starting with simpler tasks and progressing to more complex ones. This method reduces catastrophic forgetting and improves the model’s ability to learn complex tasks gradually but is more time-consuming.
  • Adapter Fine-Tuning: Small trainable layers (adapters) are added to a pre-trained model, and only these adapters are fine-tuned. It’s highly efficient for multi-task learning but less flexible than full fine-tuning and may not be optimal for all tasks.
  • LoRA (Low-Rank Adaptation): Low-rank matrices are added to specific layers of a pre-trained model, and only these matrices are fine-tuned. It’s efficient in terms of memory and computation, making it ideal for large models but may not be as effective for very complex tasks.
  • QLoRA (Quantized LoRA): Combines LoRA with quantization techniques to further reduce the size of the model and its memory requirements. The low-rank matrices are quantized, making them more memory-efficient.

LLM Application Frameworks & Libraries

LLM (Large Language Model) Application Frameworks and Libraries are tools designed to simplify the development, orchestration, and deployment of applications powered by large language models like GPT, Claude, Gemini, or LLaMA. These tools provide abstractions for managing prompts, memory, agents, tools, workflows, and integrations with external data or systems.

LangChain & LangGraph

  • LangChain is a framework for building LLM applications by combining models with tools, prompts, memory, and data sources. LangGraph is an extension of LangChain that models LLM workflows as stateful graphs, making it easier to build multi-step or multi-agent systems with loops and control flow.
  • https://python.langchain.com/docs/introduction/

LlamaIndex

  • LlamaIndex is a framework that helps connect large language models (like OpenAI GPT) to external data sources such as PDFs, databases, or APIs. It focuses on data ingestion, indexing, and retrieval so LLM apps (e.g., RAG systems) can query private or structured data efficiently
  • https://developers.llamaindex.ai/python/framework/

Agent Frameworks

Agent frameworks are specialized software tools or libraries designed to build, manage, and orchestrate LLM-based agents. These frameworks help you create intelligent agents that can autonomously reason, plan, and act using external tools or in coordination with other agents.

What Do Agent Frameworks Provide?

  • Agent Abstractions: Define agent identity, goals, memory, behavior, and permissions.
  • Tool Interfaces: Register external tools (APIs, functions, databases, etc.) agents can use.
  • Execution Logic: Handle planning, decision-making, tool-calling, retries, and feedback loops.
  • Multi-Agent Orchestration: Manage communication and task delegation among multiple agents.
  • Memory & Context: Enable persistent memory, history tracking, and contextual reasoning.
  • Observability: Offer tracing, logging, and step-by-step reasoning outputs for debugging.

LangChain & LangGraph

  • LangChain & LangGraph have also strong agent framework. LangChain provides a strong agent framework that lets LLMs dynamically decide which tools, APIs, or actions to use to complete a task. LangGraph extends this by enabling stateful, multi-agent workflows and complex control flows (loops, branching) using a graph-based execution model.
  • https://python.langchain.com/docs/introduction/

AWS Strands

Google Agent Development Kit

  • Agent Development Kit (ADK) is a flexible and modular framework for developing and deploying AI agents. While optimized for Gemini and the Google ecosystem, ADK is model-agnostic, deployment-agnostic, and is built for compatibility with other frameworks.
  • ADK was designed to make agent development feel more like software development, to make it easier for developers to create, deploy, and orchestrate agentic architectures that range from simple tasks to complex workflows.
  • https://google.github.io/adk-docs/

CrewAI

CrewAI is Python framework built entirely from scratch—completely independent of LangChain or other agent frameworks. CrewAI empowers developers with both high-level simplicity and precise low-level control, ideal for creating autonomous AI agents tailored to any scenario:

  • CrewAI Crews: Optimize for autonomy and collaborative intelligence, enabling you to create AI teams where each agent has specific roles, tools, and goals.
  • CrewAI Flows: Enable granular, event-driven control, single LLM calls for precise task orchestration and supports Crews natively.
  • https://docs.crewai.com/introduction

PydanticAI

  • PydanticAI is a Python agent framework designed to make it less painful to build production grade applications with Generative AI. https://ai.pydantic.dev/

Agents

An LLM agent is an autonomous or semi-autonomous system that uses a large language model (like GPT, Claude, or Gemini) to reason, make decisions, and take actions using external tools or APIs to accomplish a goal.

An LLM agent typically includes:

  • LLM Core: The brain that interprets tasks and generates reasoning.
  • Memory (optional): Stores history of actions, inputs, and outputs for context-aware behavior.
  • Tools: External APIs, databases, web search, code execution, or custom functions the agent can call.
  • Environment: The runtime or framework (e.g., LangChain, CrewAI, Google ADK) in which the agent operates.
python
# Define a tool function
def get_capital_city(country: str) -> str:
  """Retrieves the capital city for a given country."""
  # Replace with actual logic (e.g., API call, database lookup)
  capitals = {"france": "Paris", "japan": "Tokyo", "canada": "Ottawa"}
  return capitals.get(country.lower(), f"Sorry, I don't know the capital of {country}.")

# Add the tool to the agent
capital_agent = LlmAgent(
    model="gemini-3.0-pro",
    name="capital_agent",
    description="Answers user questions about the capital city of a given country.",
    instruction="""You are an agent that provides the capital city of a country... (previous instruction text)""",
    tools=[get_capital_city]
)

Tools

A Tool represents a specific capability provided to an AI agent, enabling it to perform actions and interact with the world beyond its core text generation and reasoning abilities.

  • Function Tool: Transforming a function into a tool is a straightforward way to integrate custom logic into your agents.
  • Agent-as-Tool: This powerful feature allows you to leverage the capabilities of other agents within your system by calling them as tools. The Agent-as-a-Tool enables you to invoke another agent to perform a specific task, effectively delegating responsibility.
  • Google ADK Built-in-Tools: These built-in tools provide ready-to-use functionality such as Google Search or code executors that provide agents with common capabilities.
  • Langchain Tools: Also used in Google ADK as Langchain Tools.
  • CrewAI Tools: Also used in Google ADK as CrewAI Tools.
  • MCP Tools: Connects MCP server apps to MCP Clients (Claude App, VSCode, etc,) or Agents (Google ADK).

MCP: Model Context Protocol

  • The Model Context Protocol (MCP) is an open standard designed to standardize how Large Language Models (LLMs) like Gemini and Claude communicate with external applications, data sources, and tools
  • MCP follows a client-server architecture, defining how data (resources), interactive templates (prompts), and actionable functions (tools) are exposed by an MCP server and consumed by an MCP client (which could be an LLM host application or an AI agent).
  • https://www.anthropic.com/engineering/building-effective-agents

Agent Skills

  • Agent skills are predefined capabilities or tools that an AI agent can invoke to complete tasks (e.g., run code, query a database, or read documentation). They are usually packaged as reusable units containing instructions, scripts, and supporting files so the agent knows when and how to use them. In many frameworks, a skill may include a script (Python/JS) for execution and Markdown files describing usage instructions. This allows agents to extend functionality without changing the core agent logic.

Example skill structure:

skills/
 └─ query_parquet/
     ├─ skill.md
     └─ run_query.py

skill.md:

# Query Parquet Skill
Use this skill when you need to run SQL queries on Parquet files.

Input:
- SQL query

Output:
- Query results as a table

run_query.py:

python
import duckdb

def run_query(sql, file_path):
    con = duckdb.connect()
    return con.execute(f"SELECT * FROM read_parquet('{file_path}') WHERE {sql}").fetchall()

A2A: Agent to Agent Protocol

The Agent2Agent (A2A) protocol facilitates communication between independent AI agents. Here are the core concepts:

  • Agent Card: A public metadata file (usually at /.well-known/agent.json) describing an agent's capabilities, skills, endpoint URL, and authentication requirements. Clients use this for discovery.
  • A2A Server: An agent exposing an HTTP endpoint that implements the A2A protocol methods (defined in the json specification). It receives requests and manages task execution.
  • A2A Client: An application or another agent that consumes A2A services. It sends requests (like tasks/send) to an A2A Server's URL.
  • Task: The central unit of work. A client initiates a task by sending a message (tasks/send or tasks/sendSubscribe). Tasks have unique IDs and progress through states (submitted, working, input-required, completed, failed, canceled).
  • Message: Represents communication turns between the client (role: "user") and the agent (role: "agent"). Messages contain Parts.
  • Part: The fundamental content unit within a Message or Artifact. Can be TextPart, FilePart (with inline bytes or a URI), or DataPart (for structured JSON, e.g., forms).
  • Artifact: Represents outputs generated by the agent during a task (e.g., generated files, final structured data). Artifacts also contain Parts.
  • Streaming: For long-running tasks, servers supporting the streaming capability can use tasks/sendSubscribe. The client receives Server-Sent Events (SSE) containing TaskStatusUpdateEvent or TaskArtifactUpdateEvent messages, providing real-time progress.
  • Push Notifications: Servers supporting pushNotifications can proactively send task updates to a client-provided webhook URL, configured via tasks/pushNotification/set.
  • Link: https://github.com/google/A2A

Other Useful Resources Related LLMs, Agents, MCPs

References

Fast LLM Agent MCPのMCPを複数のAIモデルで活用

TypingMindはワークスペース単位でMCPツールに接続します。そのため、一度Fast LLM Agent MCPに接続すれば、モデルごとに個別に設定することなく、TypingMind内のさまざまなAIモデルで利用できます。 このMCPは、デバイス上のTypingMind MCPコネクタを通じてローカルで動作します。

ローカルコネクタのセットアップガイド

MCPサーバーが、お使いのコンピューター上のローカルファイル、アプリ、非公開リソースにアクセスする必要がある場合は、この方法を使います。

1

MCP設定を開く

TypingMindで「設定」、「詳細設定」、「MCP」の順に進み、「コネクタを設定」を選択してください。

  1. ブラウザでTypingMindを開いてください。
  2. 設定アイコンをクリックしてください。
  3. 「詳細設定」に移動してください。
  4. 「MCP」セクションを開いてください。
  5. 「コネクタを設定」をクリックし、「このデバイス」を選択してください。
「このデバイス」が選択されたTypingMindのMCPコネクタ設定画面
2

コネクタのコマンドを実行

「このデバイス」を選択し、TypingMindからコマンドをコピーしてターミナルで実行してください。MCPの使用中は、プロセスを実行したままにしてください。

  1. TypingMindに表示されるセットアップコマンドをコピーしてください。
  2. macOSではターミナルを、WindowsではWindows Terminalを開いてください。
  3. コマンドを貼り付けて実行してください。
  4. ターミナルで続行の確認を求められた場合は、パッケージのインストールを承認してください。
  5. MCPツールの使用中は、ターミナルウィンドウを開いたまま、プロセスの実行を継続してください。
3

Fast LLM Agent MCPをサーバーとして追加

コネクタのステータスが「準備完了」になったら、「サーバーを編集」をクリックし、MCPサーバーの設定を貼り付けてください。

  1. コネクタのステータスが「準備完了」になるまでお待ちください。
  2. 「サーバーを編集」をクリックしてください。
  3. Fast LLM Agent MCPのMCPサーバー設定を貼り付けてください。
  4. サーバー一覧を保存してください。
  5. コネクタが引き続き使用可能か確認するには、更新してください。
稼働中のサーバーと「サーバーを編集」ボタンが表示されたTypingMindのMCP設定画面
{
  "mcpServers": {
    "fast-llm-agent-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

複数のモデルで同じ接続を使用

サーバー一覧を保存し、「プラグイン」を開いてFast LLM Agent MCPのMCPツールを有効にしてください。その後、TypingMindで対応するAIモデルを選択し、チャットでツールを使うか、AIエージェントに割り当ててください。

  1. TypingMindの「プラグイン」ページを開いてください。
  2. Fast LLM Agent MCPのMCPツールを有効にしてください。
  3. チャットを開始し、使用するAIモデルを選択してください。
  4. MCPツールをチャットで使うか、AIエージェントに割り当ててください。
  5. MCPに再接続することなく、必要に応じて別のAIモデルに切り替えられます。
選択したAIモデルと有効なMCPツールを使用したTypingMindのチャット
Fast LLM Agent MCPを使ってこのタスクを手伝ってもらえますか?
Fast LLM Agent MCP
はい、読みました。
Fast LLM Agent MCPで調べた結果をお伝えします。

よくある質問

Fast LLM Agent MCP MCPサーバーは何に使いますか?

Fast LLM Agent MCPは、対応するAIクライアントを外部ツールやコンテキストに接続するためのMCPサーバーです。TypingMindでは、このMCPサーバーを一度追加するだけで、AIワークスペース内でそのツールを利用できるようになります。

TypingMindでFast LLM Agent MCP MCPを複数のAIモデルと併用できますか?

はい。TypingMindはワークスペース単位でMCPツールに接続するため、モデルごとにMCPサーバーを設定する必要はありません。Claude、ChatGPT、Geminiや、TypingMindで設定したその他のAIモデルでFast LLM Agent MCPを利用できます。

TypingMindでFast LLM Agent MCP MCPを使うメリットは何ですか?

TypingMindは、複数のAIモデル、プロンプト、プラグイン、AIエージェント、APIキー、MCPツールを1つのワークスペースにまとめられる、LLMチャット向けの優れたフロントエンドです。Fast LLM Agent MCPを接続すると、TypingMindでチャットのワークフローを整理しながら、お好みのモデルでそのMCPツールを利用できます。

Fast LLM Agent MCP MCPをTypingMindに接続するにはどうすればよいですか?

Fast LLM Agent MCPはTypingMindのローカルMCPコネクタ経由で動作します。MCPサーバーがコンピューター上のローカルファイル、デスクトップアプリ、コマンドラインツール、プライベートリソースにアクセスする必要がある場合に最適です。

TypingMindでFast LLM Agent MCP MCPのどのようなツールを利用できますか?

Fast LLM Agent MCPはMCP機能を提供しています。TypingMindのプラグインページで有効にすると、チャットで使用したり、AIエージェントに割り当てたりできます。

Fast LLM Agent MCP MCPを使うには、APIキーをTypingMindと共有する必要がありますか?

いいえ。TypingMindはローカルファーストの設計で、モデルプロバイダー、APIキー、プロンプト、MCP設定をご自身で管理できます。Fast LLM Agent MCPで認証が必要な場合は、接続の作成時に、そのMCPサーバーに必要なヘッダー、OAuth設定、またはローカル設定を追加してください。

関連するMCPサーバー

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇