
Store and retrieve entities, relations and observations in a persistent local knowledge graph.

An MCP hub that connects MCP-compatible clients to configurable AI agents exposed as tools.
MCP Agent Server is cataloged as an MCP server attributed to fkesheh. An MCP hub that connects MCP-compatible clients to configurable AI agents exposed as tools. It is categorized under ai agents-models. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: MIT License. Check the source repository's current license and terms before using, modifying or distributing this software.
能力定义尚未审核。未核验的采集内容不会作为可信接口展示。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for MCP Agent Server are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
Yes, setting expose to false keeps an agent available only internally to other agents rather than as a tool in MCP clients.
Yes, the configuration supports an import type that loads a pre-configured agent, a factory function, or an async factory function from a file.
Yes, agents can combine multiple prebuilt servers, such as Sequential Thinking, Memory, and Fetch, to gain multiple capabilities.
README.md · 3d6c0790c0c9 · 采集于 2026-11-13 10:22:33 UTC
保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。
当前显示最后一次成功采集的文档快照,请以来源页面为准。
A Model Context Protocol (MCP) hub that seamlessly connects AI clients with intelligent agents, enabling powerful cross-platform communication across multiple AI ecosystems.
MCP Agent Server creates a bridge between MCP-compatible clients (like Claude Desktop, VS Code, Cursor, etc.) and specialized AI agents. It enables you to:
This project leverages the mcp-ai-agent framework to simplify agent creation and management.
You can run MCP Agent Server directly using npx without installation:
# Start the server with default configuration
npx mcp-agent-server
# Start with custom configuration
npx mcp-agent-server --config my-config.json
# Test an agent
npx mcp-agent-server test-agent --name "Sequential Thinker" --prompt "What is 2+2?"
Install globally to use the mcp-agent-server command anywhere:
npm install -g mcp-agent-server
# Then use it
mcp-agent-server --config my-config.json
Clone the repository:
git clone <repository-url>
cd mcp-agent-server
Install dependencies:
npm install
Build the project:
npm run build
The MCP Agent Server now uses JSON-based configuration for easier management and deployment. You can create a personalized agents configuration file named my-agents-config.json in the project root. The server automatically detects and uses this file if it exists.
To create your custom configuration:
my-agents-config.json in the project rootHere's an example of a custom agents configuration:
{
"version": "1.0.0",
"agents": [
{
"name": "Code Context Agent",
"description": "Use this agent to analyze and understand code in your projects",
"model": {
"provider": "anthropic",
"model": "claude-3-5-haiku-20241022"
},
"toolsConfigs": [
{
"prebuilt": "sequentialThinking"
},
{
"mcpServers": {
"codeContext": {
"command": "node",
"args": ["/path/to/code-context-mcp/dist/index.js"]
}
}
}
]
},
{
"name": "Web Search Agent",
"description": "Use this agent to search the web",
"systemPrompt": "Prefer to use brave search to search the web for information.",
"model": {
"provider": "anthropic",
"model": "claude-3-5-haiku-20241022"
},
"toolsConfigs": [
{
"prebuilt": "sequentialThinking"
},
{
"prebuilt": "braveSearch"
}
]
},
{
"name": "Master Agent",
"description": "An agent that can manage other agents",
"model": {
"provider": "openai",
"model": "gpt-4o-mini"
},
"toolsConfigs": [
{
"agentRef": "Code Context Agent"
},
{
"agentRef": "Web Search Agent"
}
]
}
]
}
"openai" - OpenAI models (GPT-4, GPT-4o, etc.)"anthropic" - Anthropic Claude models"google" - Google Generative AI (Gemini models)"vertex" - Google Vertex AI"bedrock" - Amazon Bedrock"azure" - Azure OpenAI Service"cohere" - Cohere models"mistral" - Mistral AI models"fireworks" - Fireworks AI"groq" - Groq (ultra-fast inference)"perplexity" - Perplexity AI"togetherai" - Together AI"xai" - xAI (Grok models)"deepseek" - DeepSeek models"cerebras" - Cerebras inference"deepinfra" - DeepInfra"replicate" - Replicate (open source models)"gpt-4o-mini", "claude-3-5-haiku-20241022", "gemini-2.0-flash-exp")Prebuilt Servers (recommended):
{
"prebuilt": "sequentialThinking"
}
Available prebuilt servers: sequentialThinking, memory, braveSearch, firecrawlMcp, fetch, awsKbRetrieval, everart, fileSystem, sqlite
Custom MCP Servers:
{
"mcpServers": {
"serverName": {
"command": "node",
"args": ["/path/to/server.js"],
"env": {
"API_KEY": "your-api-key"
}
}
}
}
Agent References (for master agents):
{
"agentRef": "Other Agent Name"
}
Imported Agents (for using external agent files):
{
"type": "import",
"importPath": "/path/to/your/agent-file.js",
"exportName": "createResearchAgent",
"factoryArgs": {
"modelProvider": "anthropic",
"modelName": "claude-3-5-haiku-20241022",
"includeMemory": true
}
}
This allows you to import agents from TypeScript/JavaScript files created with the mcp-ai-agent library. The imported file can export:
You can control which agents are exposed to MCP clients using the expose boolean field on each agent. This is useful when you want to have helper agents that are only used internally by other agents:
{
"version": "1.0.0",
"agents": [
{
"name": "Web Search Helper",
"description": "Internal web search capabilities",
"model": { "provider": "openai", "model": "gpt-4o-mini" },
"toolsConfigs": [{ "prebuilt": "braveSearch" }],
"expose": false
},
{
"name": "Master Assistant",
"description": "Public-facing assistant with web search",
"model": {
"provider": "anthropic",
"model": "claude-3-5-haiku-20241022"
},
"toolsConfigs": [
{ "prebuilt": "sequentialThinking" },
{ "agentRef": "Web Search Helper" }
],
"expose": true
}
]
}
expose: true (default): Agent is available as a tool in MCP clientsexpose: false: Agent is only available internally to other agentsYou can specify a custom configuration file using the --config argument:
# Using CLI
npm run test-agent -- --config="path/to/config.json" --name="Agent Name" --prompt="Test prompt"
# When starting the server (multiple formats supported)
node dist/index.js --config=path/to/config.json
node dist/index.js -c path/to/config.json
node dist/index.js --config path/to/config.json
You can include as many specialized agents as needed, such as:
Important: After creating or updating your custom configuration, remember to:
- Run
npm run buildto rebuild the project- Restart your MCP client to apply changes
The server comes with a default agents-config.json that includes:
Important: After making changes to your agent configurations, remember to:
- Run
npm run buildto rebuild the project- Restart your Claude client to apply changes
- On Windows, you may need to completely close Claude using Task Manager (Ctrl+Alt+Del) as it can continue running in the background
{
"version": "1.0.0",
"agents": [
{
"name": "Sequential Thinker",
"description": "Use this agent to think sequentially and resolve complex problems",
"model": {
"provider": "openai",
"model": "gpt-4o-mini"
},
"toolsConfigs": [
{
"mcpServers": {
"sequentialThinking": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-sequential-thinking"]
}
}
}
]
},
{
"name": "Claude Assistant",
"description": "A powerful AI assistant using Claude's capabilities",
"model": {
"provider": "anthropic",
"model": "claude-3-5-sonnet-20241022"
},
"toolsConfigs": [
{
"mcpServers": {
"memory": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-memory"]
}
}
}
]
},
{
"name": "Master Agent",
"description": "An agent that can manage other agents",
"model": {
"provider": "openai",
"model": "gpt-4o-mini"
},
"toolsConfigs": [
{
"agentRef": "Sequential Thinker"
},
{
"agentRef": "Memory Agent"
},
{
"agentRef": "Brave Search Agent"
}
]
}
]
}
Note: The mcp-ai-agent framework supports various AI models through the AI SDK. You can use models from providers such as OpenAI, Anthropic, Google Generative AI, Mistral, Groq, and many others. Check the AI SDK Providers documentation for the complete list of supported models and their capabilities.
Add the MCP Agent Server to your MCP client configuration:
Edit your claude_desktop_config.json:
{
"mcpServers": {
"mcp-agent-server": {
"command": "npx",
"args": ["mcp-agent-server", "--config", "/path/to/your/config.json"]
}
}
}
{
"mcpServers": {
"mcp-agent-server": {
"command": "mcp-agent-server",
"args": ["--config", "/path/to/your/config.json"],
"env": {
"OPENAI_API_KEY": "your-openai-api-key",
"BRAVE_API_KEY": "your-brave-api-key",
"ANTHROPIC_API_KEY": "your-anthropic-api-key"
}
}
}
}
{
"mcpServers": {
"mcp-agent-server": {
"command": "node",
"args": [
"/full/path/to/mcp-agent-server/dist/index.js",
"--config",
"/path/to/your/config.json"
],
"env": {
"OPENAI_API_KEY": "your-openai-api-key",
"BRAVE_API_KEY": "your-brave-api-key",
"ANTHROPIC_API_KEY": "your-anthropic-api-key"
}
}
}
}
Important: After making changes to
claude_desktop_config.json, remember to:
- Restart your Claude client to apply changes
- On Windows, you may need to completely close Claude using Task Manager (Ctrl+Alt+Del) as it can continue running in the background
Follow the specific client's instructions for adding MCP servers, using:
node["/full/path/to/mcp-agent-server/dist/index.js"]Once configured, your agents will appear as tools in your MCP client. For example, in Claude Desktop, you can use them by:
/ to view available toolsFor custom functionality, you have several options:
Use Prebuilt Servers (recommended): Choose from available prebuilt servers like sequentialThinking, memory, braveSearch, fetch, etc.
Create Custom MCP Servers: Build your own MCP server and integrate it:
{
"name": "Calculator Agent",
"description": "A calculator agent with custom math operations",
"model": {
"provider": "openai",
"model": "gpt-4o-mini"
},
"toolsConfigs": [
{
"mcpServers": {
"calculator": {
"command": "node",
"args": ["/path/to/your/calculator-mcp-server.js"]
}
}
}
]
}
{
"name": "Multi-Tool Agent",
"description": "An agent with multiple capabilities",
"model": {
"provider": "anthropic",
"model": "claude-3-5-haiku-20241022"
},
"toolsConfigs": [
{
"prebuilt": "sequentialThinking"
},
{
"prebuilt": "memory"
},
{
"prebuilt": "fetch"
}
]
}
You can import agents from external files. See example: @fkesheh/mcp-ai-agent-example/exportable-agent.ts
// my-agent.ts
import { AIAgent, Servers } from "mcp-ai-agent";
import { openai } from "@ai-sdk/openai";
export const myAgent = new AIAgent({
name: "My Custom Agent",
description: "A custom agent",
model: openai("gpt-4o-mini"),
toolsConfigs: [Servers.sequentialThinking],
});
npx tsc # Creates my-agent.js in dist/ folder
{
"type": "import",
"importPath": "/full/path/to/dist/my-agent.js",
"exportName": "myAgent"
}
Important: Always use absolute paths to compiled .js files.
The mcp-ai-agent framework supports various MCP servers:
npm run buildMCP Agent Server comes with a command-line interface (CLI) for working with agents.
You can test individual agents directly from the command line without connecting to an MCP client, this is helpful for debugging purposes.
npx mcp-agent-server test-agent --config="/path/to/config.json" --name="Agent Name" --prompt="Your test prompt" --context="Optional context"
For example, to test the Brave Search Agent:
npx mcp-agent-server test-agent --config="./agents-config.json" --name="Brave Search" --prompt="What is the capital of France?" --context="I need geographical information"
Or test the Master Agent which combines multiple specialized agents:
npx mcp-agent-server test-agent --config="./my-agents-config.json" --name="Master Agent" --prompt="Store this information: Claude is an AI assistant by Anthropic" --context="I need to test the memory capabilities"
Note: If no
--configis specified, the server will look foragents-config.jsonormy-agents-config.jsonin the current directory.
npm run test-agent -- --config="path/to/config.json" --name="Agent Name" --prompt="Your test prompt" --context="Optional context"
Or run the command directly:
node dist/cli.js test-agent --config="./agents-config.json" --name="Sequential Thinker" --prompt="How would I approach solving a complex math problem?"
The test command will:
This is useful for:
The test command will list all available agents if you provide an invalid agent name.
This project is licensed under the MIT License.
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for MCP Agent Server from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/mcp-agent-server)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。
尚无已审核的包 / 镜像标识,暂不展示下载统计。
Alternative and complementary servers in the same category

Store and retrieve entities, relations and observations in a persistent local knowledge graph.

Organize problem solving into revisable, branching thought steps through an MCP tool.

Query-aware context compression with an MCP plugin for coding agents, plus Python and HTTP interfaces for reducing the context sent to a language model.