MCP Catalogs
Home

mcp-agent

by joshuaalpuerto·18·Score 43

TypeScript framework for building AI agents with MCP tools and workflows.

ai-llmdeveloper-toolsproductivity
4
Forks
0
Open issues
3 mo ago
Last commit
2d ago
Indexed

Overview

mcp-agent is a TypeScript framework inspired by the Python mcp-agent project, providing a simple, composable way to build AI agents leveraging the Model Context Protocol. It offers agent abstraction, MCP server integration, local function tools, and various workflow patterns like the Orchestrator pattern. The framework features a two-layer architecture with a global Connection Manager and per-Agent Aggregator for efficient resource management.

Try asking AI

After installing, here are 5 things you can ask your AI assistant:

you:Building conversational AI agents with tools access
you:Creating multi-agent systems with complex workflows
you:Integrating MCP servers into existing TypeScript applications
you:What is the difference between mcp-agent and the original Python version?
you:How does the Connection Manager + Aggregator architecture work?

When to choose this

Choose this if you're working in a TypeScript/JavaScript environment and need to build AI agents that can orchestrate multiple MCP tools and implement agent workflows.

When NOT to choose this

Avoid this if you need a more mature ecosystem with broader MCP server support or if you're working primarily in a Python environment where the original mcp-agent would be more suitable.

Tools this server exposes

3 tools extracted from the README
  • read_file_from_local_file_system

    Reads files from the local file system

  • search_web

    Searches the web using an external API

  • writeLocalSystem

    Writes information to a local file

Note: Tool names were inferred from the example configuration in the README, which shows MCP server configurations being used. The exact signatures and detailed descriptions are not documented in the provided text.

Comparable tools

lastmile-ai/mcp-agentlangchainsemantic-coren8nautogen

Installation

npm install @joshuacalpuerto/mcp-agent

For Claude Desktop integration, add to claude_desktop_config.json:

{
  "mcpServers": {
    "mcp-agent": {
      "command": "node",
      "args": ["--loader", "ts-node/esm", "/path/to/your/mcp-agent/index.ts"]
    }
  }
}

FAQ

What is the difference between mcp-agent and the original Python version?
The TypeScript version brings the same patterns and architecture to JavaScript/TypeScript environments, offering type safety and integration with existing Node.js applications. The core concepts remain the same.
How does the Connection Manager + Aggregator architecture work?
The Connection Manager maintains a global pool of MCP server connections to avoid duplication. Each Agent has its own Aggregator that provides access to specific tools from the global pool, enabling connection reuse while maintaining isolation.

Compare mcp-agent with

GitHub →

Last updated · Auto-generated from public README + GitHub signals.