Logo de Fast LLM Agent MCP

Fast LLM Agent MCP

Communauté
omerbsezer

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

Éditeuromerbsezer
DépôtFast-LLM-Agent-MCP
LanguePython
Forks
35
Étoiles
91
Outils disponibles
0
Type de transportstdio
Liens
  • Connectez des outils à vos workflows IA

    Fast LLM Agent MCP propose des fonctionnalités MCP utilisables par les clients et agents IA compatibles.

  • 0 outils disponibles

    Parcourez les actions invocables ci-dessous, avec leurs noms et descriptions lorsque le serveur les fournit.

  • Configuration prête à copier

    Utilisez les exemples de configuration pour configurer ce serveur dans votre client MCP préféré.

  • Indicateurs de popularité open source

    91 étoiles et 35 forks sur le dépôt associé.

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

Utilisez le serveur MCP Fast LLM Agent MCP avec plusieurs modèles IA

TypingMind connecte les outils MCP au niveau de l’espace de travail. Une fois Fast LLM Agent MCP connecté, vous pouvez donc l’utiliser avec différents modèles IA dans TypingMind sans avoir à le configurer séparément pour chaque modèle. Cette intégration MCP s’exécute localement sur votre appareil via le connecteur MCP de TypingMind.

Guide de configuration du connecteur local

Choisissez cette méthode si le serveur MCP doit accéder à des fichiers locaux, à des applications ou à des ressources privées sur votre ordinateur.

1

Ouvrir les paramètres MCP

Dans TypingMind, accédez à « Paramètres », puis à « Paramètres avancés » et à « Model Context Protocol », et choisissez « Configurer connecteur ».

  1. Ouvrez TypingMind dans votre navigateur.
  2. Cliquez sur l’icône Paramètres.
  3. Accédez aux paramètres avancés.
  4. Ouvrez la section Model Context Protocol.
  5. Cliquez sur « Configurer connecteur » et choisissez « Cet appareil ».
Écran de configuration du connecteur MCP de TypingMind avec l’option « Cet appareil » sélectionnée
2

Exécuter la commande du connecteur

Choisissez « Cet appareil », copiez la commande depuis TypingMind et exécutez-la dans Terminal. Laissez le processus en cours d’exécution pendant que vous utilisez MCP.

  1. Copiez la commande de configuration affichée par TypingMind.
  2. Ouvrez Terminal sur macOS ou Windows Terminal sur Windows.
  3. Collez et exécutez la commande.
  4. Autorisez l’installation du paquet si Terminal vous demande de confirmer.
  5. Gardez la fenêtre de Terminal ouverte et le processus en cours d’exécution pendant que vous utilisez les outils MCP.
3

Ajoutez Fast LLM Agent MCP en tant que serveur

Lorsque l’état du connecteur affiche « Prêt », cliquez sur « Éditer serveurs » et collez la configuration du serveur MCP.

  1. Attendez que l’état du connecteur affiche « Prêt ».
  2. Cliquez sur « Éditer serveurs ».
  3. Collez la configuration du serveur MCP Fast LLM Agent MCP.
  4. Enregistrez la liste des serveurs.
  5. Actualisez pour vérifier que le connecteur est toujours prêt.
Paramètres MCP de TypingMind affichant un serveur actif et le bouton « Éditer serveurs »
{
  "mcpServers": {
    "fast-llm-agent-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Utiliser la connexion avec différents modèles

Enregistrez la liste des serveurs, ouvrez « Plugins », activez les outils MCP de Fast LLM Agent MCP, puis sélectionnez un modèle IA compatible dans TypingMind et utilisez les outils dans une discussion ou attribuez-les à un agent IA.

  1. Ouvrez la page Plugins dans TypingMind.
  2. Activez les outils MCP de Fast LLM Agent MCP.
  3. Démarrez une discussion et choisissez le modèle IA que vous souhaitez utiliser.
  4. Utilisez les outils MCP dans le chat ou attribuez-les à un agent IA.
  5. Passez à un autre modèle IA selon vos besoins sans rétablir la connexion MCP.
Discussion TypingMind utilisant des outils MCP activés avec un modèle d’IA sélectionné
Pouvez-vous utiliser Fast LLM Agent MCP pour m’aider dans cette tâche ?
Fast LLM Agent MCP
Bien sûr. J’ai tout lu.
Voici ce que j’ai trouvé avec Fast LLM Agent MCP.

Foire aux questions

À quoi sert le serveur MCP Fast LLM Agent MCP ?

Fast LLM Agent MCP est un serveur MCP qui permet aux applications IA compatibles d’accéder à des outils et à des informations contextuelles externes. Dans TypingMind, il vous suffit d’ajouter ce serveur MCP une seule fois pour rendre ses outils disponibles dans votre espace de travail IA.

Puis-je utiliser le serveur MCP Fast LLM Agent MCP avec plusieurs modèles IA dans TypingMind ?

Oui. TypingMind connecte les outils MCP au niveau de l’espace de travail. Vous pouvez donc utiliser Fast LLM Agent MCP avec différents modèles IA comme Claude, ChatGPT, Gemini ou d’autres modèles configurés dans TypingMind, sans avoir à configurer le serveur MCP séparément pour chaque modèle.

Pourquoi utiliser le connecteur MCP Fast LLM Agent MCP avec TypingMind ?

TypingMind est l’une des meilleures interfaces de chat avec les LLM, car elle réunit plusieurs modèles IA, prompts, plugins, agents IA, clés API et outils MCP dans un seul espace de travail. Une fois Fast LLM Agent MCP connecté, vous pouvez utiliser ses outils MCP avec vos modèles préférés tout en gardant vos discussions bien organisées dans TypingMind.

Comment connecter le serveur MCP Fast LLM Agent MCP à TypingMind ?

Fast LLM Agent MCP fonctionne via le connecteur MCP local de TypingMind. C’est l’option idéale lorsque le serveur MCP doit accéder à des fichiers locaux, des applications de bureau, des outils en ligne de commande ou des ressources privées sur votre ordinateur.

Quels outils le serveur MCP Fast LLM Agent MCP propose-t-il dans TypingMind ?

Fast LLM Agent MCP propose des fonctionnalités MCP que vous pouvez activer depuis la page Plugins de TypingMind et utiliser dans les discussions ou attribuer à des agents IA.

Dois-je partager mes clés API avec TypingMind pour utiliser le serveur MCP Fast LLM Agent MCP ?

Non. TypingMind privilégie le fonctionnement local et vous permet de garder le contrôle de vos fournisseurs de modèles, clés API, prompts et paramètres MCP. Si Fast LLM Agent MCP nécessite une authentification, ajoutez les en-têtes, les paramètres OAuth ou la configuration locale requis pour ce serveur MCP lors de la création de la connexion.

Serveurs MCP similaires

Tout voir

Créez votre propre espace IA dès maintenant

Abonnez-vous à notre newsletter pour être informé des nouvelles fonctionnalités et des prochains cadeaux à gagner 👇