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 提供 MCP 功能,可供兼容的 AI 客户端和智能体使用。

  • 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 中,依次前往“设置”、“高级设置”和“模型上下文协议”,然后选择“设置连接器”。

  1. 在您的浏览器中打开 TypingMind。
  2. 点击“设置”图标。
  3. 进入“高级设置”。
  4. 打开“模型上下文协议”部分。
  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 模型,即可在聊天中使用这些工具,或将其分配给智能体。

  1. 在 TypingMind 中打开“插件”页面。
  2. 启用 Fast LLM Agent MCP MCP 工具。
  3. 开始聊天并选择您想使用的 AI 模型。
  4. 在聊天中使用 MCP 工具,或将其分配给 AI 智能体。
  5. 根据需要随时切换到其他 AI 模型,无需重新连接 MCP。
在 TypingMind 聊天中使用已启用的 MCP 工具和选定的 AI 模型
您能使用 Fast LLM Agent MCP 帮我完成这项任务吗?
Fast LLM Agent MCP
当然,我看过了。
以下是我使用 Fast LLM Agent MCP 得到的结果。

常见问题

Fast LLM Agent MCP MCP 服务器有什么用途?

Fast LLM Agent MCP 是一个 MCP 服务器,可让兼容的 AI 客户端连接外部工具并获取上下文。在 TypingMind 中,只需添加一次此 MCP 服务器,即可在您的 AI 工作区中使用其工具。

可以在 TypingMind 中让多个 AI 模型使用 Fast LLM Agent MCP MCP 吗?

可以。TypingMind 在工作区层面连接 MCP 工具,因此您无需为每个模型单独配置 MCP 服务器,就能在 Claude、ChatGPT、Gemini 或您在 TypingMind 中配置的其他 AI 模型中使用 Fast LLM Agent MCP。

为什么在 TypingMind 中使用 Fast LLM Agent MCP MCP?

TypingMind 将多个 AI 模型、提示词、插件、AI 智能体、API 密钥和 MCP 工具整合到同一个工作区中,是最出色的大语言模型聊天前端之一。连接 Fast LLM Agent MCP 后,您可以在偏好的不同模型中使用其 MCP 工具,同时在 TypingMind 中井然有序地管理聊天工作流程。

如何将 Fast LLM Agent MCP MCP 连接到 TypingMind?

Fast LLM Agent MCP 通过 TypingMind 本地 MCP 连接器运行。当 MCP 服务器需要访问您计算机上的本地文件、桌面应用、命令行工具或私有资源时,这种方式最合适。

Fast LLM Agent MCP MCP 在 TypingMind 中提供哪些工具?

Fast LLM Agent MCP 提供 MCP 功能,您可以在 TypingMind 的插件页面启用这些功能,然后在聊天中使用,或将其分配给 AI 智能体。

使用 Fast LLM Agent MCP MCP 需要向 TypingMind 提供我的 API 密钥吗?

不需要。TypingMind 采用本地优先的设计,让您自行选择模型提供商,并自行管理 API 密钥、提示词和 MCP 配置。如果 Fast LLM Agent MCP 需要身份验证,请在创建连接时,为该 MCP 服务器添加所需的请求头、OAuth 设置或本地配置。

相关 MCP 服务器

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇