mcp-agent
by joshuaalpuerto·★ 18·Score 43
TypeScript framework for building AI agents with MCP tools and workflows.
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:
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 READMEread_file_from_local_file_systemReads files from the local file system
search_webSearches the web using an external API
writeLocalSystemWrites 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
Installation
npm install @joshuacalpuerto/mcp-agentFor 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
Last updated · Auto-generated from public README + GitHub signals.