AI Agent with MCP
@moises-paschoalick
关于 AI Agent with MCP
Este projeto é um playground para criar o primeiro servidor MCP (Model Context Protocol), um protocolo que permite integrar LLMs a recursos externos de forma padronizada.
基本信息
配置
使用下面的配置,将此服务器添加到你的 MCP 客户端。
{
"mcpServers": {
"ai-agent-with-mcp": {
"command": "npx",
"args": [
"-y",
"@smithery/cli@latest",
"install",
"@wonderwhy-er/desktop-commander",
"--client",
"cursor",
"--key",
"dda23bec-caa6-4487-a1e9-eb74e22e33eb"
]
}
}
}工具
未检测到工具
工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。
概览
What is AI Agent with MCP?
AI Agent with MCP is an implementation of an AI agent that uses the Model Context Protocol (MCP) to interact with external resources. It includes a functional MCP server with REST resources for users and messages, along with a client to consume those resources. The project is designed for developers who want to build and test MCP servers with NodeJS, particularly for integration with the Cursor editor.
How to use AI Agent with MCP?
Install the server via npx -y @smithery/cli@latest install @wonderwhy-er/desktop-commander --client cursor --key <your-key>, or manually add it to your mcp.json file (Mac/Linux or Windows). You can also clone the repository and run npm run setup. After installation, use the provided TypeScript client code to connect and list resources, or access resources directly via REST (e.g., curl http://3.238.149.189:8080/users).
Key features of AI Agent with MCP
- Provides
api://usersresource listing all registered users. - Provides
hello://worldresource returning a simple greeting. - Includes a functional MCP client built with the official SDK.
- Supports installation via Smithery CLI or manual Cursor config.
- Allows direct REST API access to resources.
Use cases of AI Agent with MCP
- Retrieving a list of users with ID, phone number, name, and thread ID.
- Getting a “Hello, World!” greeting message through an MCP resource.
- Learning how to create and consume MCP resources in NodeJS.
- Integrating MCP resources into the Cursor editor environment.
- Testing MCP server-client communication with practical examples.
FAQ from AI Agent with MCP
How do I install the MCP server?
You can install it using npx with Smithery CLI: npx -y @smithery/cli@latest install @wonderwhy-er/desktop-commander --client cursor --key <your-key>. Alternatively, add the server configuration manually to mcp.json (located at ~/.config/cursor.json on Linux), or clone the repository and run npm run setup.
What resources are available?
The server provides two resources: api://users (returns a JSON list of users with id, phoneNumber, name, and threadId) and hello://world (returns a plain text greeting “Hello, World! This is my first MCP resource.”).
How do I use the MCP client?
Import Client and StdioClientTransport from the SDK, create a client with name: "hello-mcp-client", connect using new StdioClientTransport({ command: "node", args: ["build/index.js"] }), then call client.listResources() and client.readResource({ uri: "api://users" }).
What are the system requirements?
Node.js (version compatible with AbortController), TypeScript, and the @modelcontextprotocol/sdk package are required.
How can I access resources via REST?
Run curl http://3.238.149.189:8080/users to get the list of users directly over HTTP. The hello resource is accessed via the MCP protocol only.
AI 与智能体 分类下的更多 MCP 服务器
欢迎来到 智言平台
Shy2593666979AgentChat 是一个基于 LLM 的智能体交流平台,内置默认 Agent 并支持用户自定义 Agent。通过多轮对话和任务协作,Agent 可以理解并协助完成复杂任务。项目集成 LangChain、Function Call、MCP 协议、RAG、Memory、HITL、Skill、Milvus 和 ElasticSearch 等技术,实现高效的知识检索与工具调用,使用 FastAPI 构建高性能后端服务。
Mcp Agent
lastmile-aiBuild effective agents using Model Context Protocol and simple workflow patterns
MCP Server - Remote MacOs Use
baryhuangThe only general AI agent that does NOT requires extra API key, giving you full control on your local and remote MacOs from Claude Desktop App
Model Context Protocol for Unreal Engine
chongdashuEnable AI assistant clients like Cursor, Windsurf and Claude Desktop to control Unreal Engine through natural language using the Model Context Protocol (MCP).
Web Agent Protocol
OTA-Tech-AI🌐Web Agent Protocol (WAP) - Record and replay user interactions in the browser with MCP support
评论