Model Context Protocol(MCP)在claude使用
定义
MCP通过统一的协议,使AI模型(如Claude、GPT等)能够动态调用外部工具(如数据库、API、本地文件等),并实现跨模型的上下文共享与协作
架构

客户端-服务器模型:
MCP主机(Host):如IDE或AI工具,负责发起请求。
MCP客户端(Client):作为中间通信层,转发请求至服务器。
MCP服务器(Server):轻量级服务,通过标准化协议暴露功能,支持本地或远程部署
claude上使用
在claude上打开settings

编辑配置
可以参考我的文件,配置在文件claude_desktop_config.json中,filesystem模块中将这段改成允许访问的文件目录“/Users/{your user name}/Desktop”
{
"mcpServers":
{
"filesystem":
{
"command": "npx",
"args":
[
"-y",
"@modelcontextprotocol/server-filesystem",
"/Users/{your user name}/Desktop"
]
},
"puppeteer":
{
"command": "npx",
"args":
[
"-y",
"@modelcontextprotocol/server-puppeteer"
]
},
"everything":
{
"command": "npx",
"args":
[
"-y",
"@modelcontextprotocol/server-everything"
]
}
}
}

编辑完保存,然后重启claude
配置完成
重启后可以看到有个数量,这里显示的就是claude可以使用的mcp工具

点击查看工具详情

重新打开settings>developer,可以看到之前配置的模块

最终效果

更多的工具配置
https://github.com/modelcontextprotocol/servers
Model Context Protocol(MCP)在claude使用的更多相关文章
- The entity type <type> is not part of the model for the current context
这是在网站里遇到的一个错误,自动生成的不能手动添加, reference: http://stackoverflow.com/questions/19695545/the-entity-type-xx ...
- CBOW and Skip-gram model
转自:https://iksinc.wordpress.com/tag/continuous-bag-of-words-cbow/ 清晰易懂. Vector space model is well k ...
- Model的验证
ModelValidator与ModelValidatorProvider ModelValidator public abstract class ModelValidator { public v ...
- UDP protocol
Characteristics of the UDP protocol The UDP protocol (User Datagram Protocol) is a connectionless or ...
- HttpClient(4.3.5) - HTTP Protocol Interceptors
The HTTP protocol interceptor is a routine that implements a specific aspect of the HTTP protocol. U ...
- C# 实体model验证输出
新建Model实体: [Required(ErrorMessage = @"地址 1 为必填项!")] [StringLength(, ErrorMessage = @" ...
- httpcomponents-client-4.4.x
Chapter 1. Fundamentals Prev Next Chapter 1. Fundamentals 1.1. Request execution The most essent ...
- httpcomponents-client-ga(4.5)
http://hc.apache.org/httpcomponents-client-ga/tutorial/html/ Chapter 1. Fundamentals Prev Next ...
- httpcomponents-client-4.3.x DOC
Chapter 1. Fundamentals Prev Next Chapter 1. Fundamentals 1.1. Request execution The most essent ...
- NetCore WebSocket 即时通讯示例
1.新建Netcore Web项目 2.创建简易通讯协议 public class MsgTemplate { public string SenderID { get; set; } public ...
随机推荐
- C:.c文件和.h文件的关系
参考:1 2 问题 在进行C语言文件移植时,遇到 "通常是每个.c文件对应一个.h文件",之前了解过.h文件是头文件,用来引用其他文件的, 但在codeblocks C语 ...
- 输入输出-python
输入输出-python 输入输出 输入 Python提供了input()函数用于从控制台输入数据. name = input("请输入您的姓名:") print("您输入 ...
- Keepalived基本原理
本文分享自天翼云开发者社区<Keepalived基本原理>,作者:Ujnrfc Keepalived简介 Keepalived是Linux下一个轻量级别的高可用解决方案.高可用:广义来讲, ...
- NSSM:简化Windows服务配置,提升系统维护效率
NSSM:简化Windows服务配置,提升系统维护效率 在Windows系统环境中,服务的配置与管理是一项复杂而重要的任务.传统的服务管理方式往往涉及繁琐的步骤,不仅效率低下,还容易出错.然而,随着N ...
- Linux 部署DVWA靶场
Linux 部署DVWA靶场 DVWA是一款开源的网络安全漏洞实践平台,专为安全学习者设计.它涵盖了XXS.SQL注入.文件上传.文件包含.CSRF和暴力破解等多种安全漏洞环境,每个漏洞都有从简单到复 ...
- tomcat切割日志(log_cut.sh)
vim log_cut.sh #!/bin/bash #auther by wangxp #tomcat日志位置 LOG_DIR=/u01/yhpt/yhpt_cda/sdmp/logs #切割日志名 ...
- CF1326G 题解
题意: 蛛网树是一颗平面树,满足点是该树的凸包的顶点上等价于其是叶子. 给定一个平面树,求有多少种对点集的划分,使得每个划分出来的集合都是蛛网树. Solution 考虑树形 dp.设 \(f_u\) ...
- FreeCAD导入立创EDA下载的元件step文件档无法删除PCB部分
1.问题描述 在使用freeCAD导入step文件的时候,一开始会导入成一个成体,想隐藏某些部件,却只能隐藏整个装配体,就是图示位置无法展开,无法删除部件. 2.解决方法 找到 编辑==>首选项 ...
- scala - [01] 概述
题记部分 001 || 介绍 (1)Spark -- 新一代内存级大数据计算框架,是大数据的重要内容 (2)Spark就是使用Scala编写的.因此为了更好的学习Spark,需要掌握Scala. (3 ...
- zabbix - [01] 概述
参考:Zabbix教程(Zabbix监控系统精讲) 一.监控介绍 Cacti Cacti 是一套基于PHP.MySQL.SNMP以及RRD Tool开发的监测图形分析工具,Cacti 是使用轮询的方式 ...