MCP Agent Server
M

MCP Agent Server

The MCP Agent Server is an open-source AI employee brain designed to work in conjunction with workflow engines such as n8n. It supports natural language interfaces, persistent memory, and feedback loops, emphasizing the AI employee metaphor and vertical solutions.
2 points
6.6K

Installation

Copy the following command to your Client for configuration
Note: Your key is sensitive information, do not share it with anyone.

๐Ÿš€ MCP Agent Server

The MCP Agent Server is an open - source "brain" for AI employees, engineered to work in harmony with n8n and other workflow engines, offering a modular and efficient solution for AI - powered task automation.

๐Ÿš€ Quick Start

  1. Clone the repository:
    git clone https://github.com/yourusername/mcp-agent-server.git
    cd mcp-agent-server
    
  2. If necessary, copy over your docs and memory folders.
  3. Build and run using Docker Compose:
    docker-compose up --build
    
  4. Access the MCP server at http://localhost:4000.

๐Ÿ“ฆ Installation

  1. Make sure Node.js and Docker are installed on your system.
  2. Remove any comments from package.json (since JSON does not support comments).
  3. Install the project dependencies by running:
    npm install
    
  4. Start all services using Docker Compose:
    docker-compose up --build
    
  5. The server will be accessible at http://localhost:4000.
  6. For in - depth architecture and design details, refer to the /docs and /memory folders, as well as the "mcp - agent - server project plan" in MCP memory.

๐Ÿ“ Project Structure

  • /docs โ€” Contains design, architecture, and usage documentation.
  • /memory โ€” Holds persistent memory, logs, and knowledge.

โœจ Features

AI Employee Metaphor

The MCP Agent Server allows users to "hire," "assign," "grade," and "improve" long - lasting AI agents. Each agent comes with its own memory, learning capabilities, and feedback loop.

Opinionated & Agent - Centric

Unlike general workflow automation tools, this server is focused on the "AI employee" concept. Memory, feedback, and learning are core features rather than optional add - ons.

Natural Language Interface

It accepts natural language instructions, parses them into actionable tasks, and coordinates execution through n8n or other connectors.

Proactive, Adaptive, and Personalized

Agents can suggest actions, learn from user feedback, and enhance their performance over time.

Vertical Solutions & Simplicity

It supports vertical solutions such as "AI Analyst" and "AI Admin" with pre - built skills, workflows, and feedback loops. It also offers a straightforward, non - technical user experience for small and medium - sized businesses (SMBs) and individuals.

Persistent, Agent - Centric Memory

Memory and feedback are persistent and centered around agents, enabling them to remember past actions, user preferences, and performance history.

Easy Deployment & Extensibility

The server is designed for easy deployment using Docker and Docker Compose. It is also extensible with pluggable connectors and skills and supports SaaS monetization through multi - tenant management, API key management, and billing integration.

Not Just Another Workflow Tool

The MCP Agent Server is a platform for creating, managing, and improving AI employees that can work alongside humans, learn from experience, and generate real business value.

๐Ÿ” API Authentication

All endpoints, except /health, /users/register, and /users/login, require an x - api - key header. API keys are managed on a per - user basis. See the following section for user and API key management details.

๐Ÿ‘ฅ User & API Key Management

Endpoints

  • POST /users/register โ€” Register a new user with an email and password.
  • POST /users/login โ€” Log in and obtain an API key.
  • GET /users/me/api - keys โ€” List your API keys.
  • POST /users/me/api - keys โ€” Create a new API key.
  • DELETE /users/me/api - keys/:id โ€” Revoke an API key.

Example PowerShell Usage

# Register a new user
Invoke-RestMethod -Uri "http://localhost:4000/users/register" -Method Post -ContentType "application/json" -Body '{"email": "user@example.com", "password": "yourpassword"}'

# Login and get API key
$login = Invoke-RestMethod -Uri "http://localhost:4000/users/login" -Method Post -ContentType "application/json" -Body '{"email": "user@example.com", "password": "yourpassword"}'
$apiKey = $login.apiKey

# List API keys
Invoke-RestMethod -Uri "http://localhost:4000/users/me/api-keys" -Method Get -Headers @{ "x-api-key" = $apiKey }

# Create a new API key
Invoke-RestMethod -Uri "http://localhost:4000/users/me/api-keys" -Method Post -Headers @{ "x-api-key" = $apiKey }

# Revoke an API key (replace 1 with the actual key id)
Invoke-RestMethod -Uri "http://localhost:4000/users/me/api-keys/1" -Method Delete -Headers @{ "x-api-key" = $apiKey }

Example curl Usage

# Register a new user
curl -X POST http://localhost:4000/users/register -H "Content-Type: application/json" -d '{"email": "user@example.com", "password": "yourpassword"}'

# Login and get API key
curl -X POST http://localhost:4000/users/login -H "Content-Type: application/json" -d '{"email": "user@example.com", "password": "yourpassword"}'

# List API keys
curl http://localhost:4000/users/me/api-keys -H "x-api-key: <your-api-key>"

# Create a new API key
curl -X POST http://localhost:4000/users/me/api-keys -H "x-api-key: <your-api-key>"

# Revoke an API key (replace 1 with the actual key id)
curl -X DELETE http://localhost:4000/users/me/api-keys/1 -H "x-api-key: <your-api-key>"

๐Ÿ’ป Usage Examples

Agent Memory & Feedback Endpoints

  • POST /agents/:id/memory โ€” Add memory or feedback for an agent.
  • GET /agents/:id/memory โ€” List all memory and feedback for an agent.
  • POST /agents/:id/trigger โ€” Trigger an agent action (a stub for n8n integration).

Example PowerShell Usage

$headers = @{ "x-api-key" = "changeme" }

# Create an agent
Invoke-RestMethod -Uri "http://localhost:4000/agents" -Method Post -Headers $headers -ContentType "application/json" -Body '{"name": "Test Agent"}'

# Add memory/feedback
Invoke-RestMethod -Uri "http://localhost:4000/agents/1/memory" -Method Post -Headers $headers -ContentType "application/json" -Body '{"content": "Agent completed onboarding."}'

# List memory/feedback
Invoke-RestMethod -Uri "http://localhost:4000/agents/1/memory" -Method Get -Headers $headers

# Trigger agent
Invoke-RestMethod -Uri "http://localhost:4000/agents/1/trigger" -Method Post -Headers $headers

Example curl Usage

curl -X POST http://localhost:4000/agents/1/memory -H "Content-Type: application/json" -H "x-api-key: changeme" -d '{"content": "Agent completed onboarding."}'
curl http://localhost:4000/agents/1/memory -H "x-api-key: changeme"
curl -X POST http://localhost:4000/agents/1/trigger -H "x-api-key: changeme"

๐Ÿ”ง Technical Details

Database Migrations & Schema Management

  • All database migrations are automatically applied when the container starts (refer to docker - entrypoint.sh).
  • To add new models or fields:
    1. Edit prisma/schema.prisma.
    2. Run the following command locally while your Docker Postgres is running:
      npx prisma migrate dev --name <desc>
      
    3. Commit the generated migration files in prisma/migrations/ to your Git repository.
  • On every deployment or container rebuild, all migrations will be applied automatically.

Alternatives

K
Klavis
Klavis AI is an open-source project that provides a simple and easy-to-use MCP (Model Context Protocol) service on Slack, Discord, and Web platforms. It includes various functions such as report generation, YouTube tools, and document conversion, supporting non-technical users and developers to use AI workflows.
TypeScript
8.7K
5 points
D
Devtools Debugger MCP
The Node.js Debugger MCP server provides complete debugging capabilities based on the Chrome DevTools protocol, including breakpoint setting, stepping execution, variable inspection, and expression evaluation.
TypeScript
5.5K
4 points
M
Mcpjungle
MCPJungle is a self-hosted MCP gateway used to centrally manage and proxy multiple MCP servers, providing a unified tool access interface for AI agents.
Go
0
4.5 points
C
Cipher
Cipher is an open-source memory layer framework designed for programming AI agents. It integrates with various IDEs and AI coding assistants through the MCP protocol, providing core functions such as automatic memory generation, team memory sharing, and dual-system memory management.
TypeScript
0
5 points
N
Nexus
Nexus is an AI tool aggregation gateway that supports connecting multiple MCP servers and LLM providers, providing tool search, execution, and model routing functions through a unified endpoint, and supporting security authentication and rate limiting.
Rust
0
4 points
Z
Zen MCP Server
Zen MCP is a multi-model AI collaborative development server that provides enhanced workflow tools and cross-model context management for AI coding assistants such as Claude and Gemini CLI. It supports seamless collaboration of multiple AI models to complete development tasks such as code review, debugging, and refactoring, and can maintain the continuation of conversation context between different workflows.
Python
16.3K
5 points
O
Opendia
OpenDia is an open - source browser extension tool that allows AI models to directly control the user's browser, perform automated operations using existing login status, bookmarks and other data, support multiple browsers and AI models, and focus on privacy protection.
JavaScript
12.5K
5 points
N
Notte Browser
Certified
Notte is an open-source full-stack network AI agent framework that provides browser sessions, automated LLM-driven agents, web page observation and operation, credential management, etc. It aims to transform the Internet into an agent-friendly environment and reduce the cognitive burden of LLMs by describing website structures in natural language.
16.3K
4.5 points
N
Notion Api MCP
Certified
A Python-based MCP Server that provides advanced to-do list management and content organization functions through the Notion API, enabling seamless integration between AI models and Notion.
Python
14.8K
4.5 points
G
Gitlab MCP Server
Certified
The GitLab MCP server is a project based on the Model Context Protocol that provides a comprehensive toolset for interacting with GitLab accounts, including code review, merge request management, CI/CD configuration, and other functions.
TypeScript
16.7K
4.3 points
D
Duckduckgo MCP Server
Certified
The DuckDuckGo Search MCP Server provides web search and content scraping services for LLMs such as Claude.
Python
45.0K
4.3 points
M
Markdownify MCP
Markdownify is a multi-functional file conversion service that supports converting multiple formats such as PDFs, images, audio, and web page content into Markdown format.
TypeScript
23.8K
5 points
U
Unity
Certified
UnityMCP is a Unity editor plugin that implements the Model Context Protocol (MCP), providing seamless integration between Unity and AI assistants, including real - time state monitoring, remote command execution, and log functions.
C#
20.3K
5 points
F
Figma Context MCP
Framelink Figma MCP Server is a server that provides access to Figma design data for AI programming tools (such as Cursor). By simplifying the Figma API response, it helps AI more accurately achieve one - click conversion from design to code.
TypeScript
45.0K
4.5 points
G
Gmail MCP Server
A Gmail automatic authentication MCP server designed for Claude Desktop, supporting Gmail management through natural language interaction, including complete functions such as sending emails, label management, and batch operations.
TypeScript
15.0K
4.5 points
M
Minimax MCP Server
The MiniMax Model Context Protocol (MCP) is an official server that supports interaction with powerful text-to-speech, video/image generation APIs, and is suitable for various client tools such as Claude Desktop and Cursor.
Python
29.5K
4.8 points