What is an AI Agent in this Context?
An AI agent, in the context of Universal MCP, is typically an LLM (Large Language Model) combined with a framework (like Langchain or a custom OpenAI Functions setup) that allows it to:- Understand a user’s request or a goal.
- Reason about which tools it has available and which ones can help achieve the goal.
- Decide which tool to use and with what arguments.
- Interpret the output of the tool.
- Continue the process, potentially using more tools, until the goal is achieved or it determines it cannot proceed.
- Formulate a final response to the user.
The Role of Universal MCP Tools
Universal MCP sits between your AI agent logic and the external services.- You define Applications that connect to external services (e.g., GitHub, Reddit, your company’s internal API).
- These Applications expose Actions (methods) that become Tools when registered with the
ToolManager. - The
ToolManagerthen converts these Tools into a format that your chosen AI agent framework (like Langchain or OpenAI’s API) can understand and use.
reddit_get_latest_posts tool and how to use it based on its description and parameters.
Agent Frameworks
In the following guides, we’ll explore how to integrate Universal MCP tools with two popular approaches:- Langchain (specifically with LangGraph): A powerful framework for building stateful, multi-actor applications with LLMs. We’ll see how MCP tools can be seamlessly used within Langchain agent setups.
- OpenAI Functions/Tools API: Directly using OpenAI’s models that support tool calling, by providing them with MCP tool definitions.