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 ...
随机推荐
- Kotlin基础语法
- 为什么UNIX使用init进程启动其他进程?
为什么UNIX使用init进程启动其他进程? 在UNIX系统中,当系统启动时,内核完成初始化后会启动第一个用户空间进程,通常是init进程.init进程负责启动和管理其他用户空间进程,而内核本身并不直 ...
- Luogu P11363 NOIP2024 树的遍历 题解 [ 紫 ] [ 树形 dp ] [ 组合计数 ] [ adhoc ]
树上遍历:CCF 难得一遇的好题! 参考了洛谷的第一篇题解,所以思路会有点相似. 部分分 当 \(k=1\) 时,显然方案总数为 \(\prod_{i=1}^{n}(d_i-1)!\),因为进入一个子 ...
- 开源的 DeepSeek-R1「GitHub 热点速览」
春节假期回来,一睁眼全是王炸级的开源模型 DeepSeek-R1! GitHub 地址→github.com/deepseek-ai/DeepSeek-R1 DeepSeek-R1 开源还不到一个月, ...
- kickstart和PXE安装
Kickstart安装Kickstart是一种无人值守的安装方式如果在安装过程中出现要填写参数的情况,安装程序首先会去查找Kickstart生成的文件,如果找到合适的参数,就采用所找到的参数:如果没有 ...
- QT5笔记:18 QPainter基本绘图
代码 #include "widget.h" #include "ui_widget.h" #include <QPainter> Widget:: ...
- springboot+vue项目:工具箱
常用账号管理:工作相关账号.游戏账号.各平台账号 加班调休管理:公司没有对应的系统,需要自己记录加班调休情况. 待办事项:方便记录待办,以提醒还有哪些事情没有办理. 待实现功能: 1.点击侧边栏菜单, ...
- hbase - [04] java访问hbase
需要导入jar包 $HBASE_HOME/lib下的所有jar包 $HADOOP_HOME/share/hadoop/common的所有jar包 package com.harley.hbase.te ...
- 「六」Goaccess实现可视化
下载 apt install goaccess 使用goaccess进行监控 LANG="en_US.UTF-8" bash -c 'goaccess logs/access.lo ...
- Polar困难模式部分题解
choose from pwn import *from LibcSearcher import *context.terminal = ["tmux","splitw& ...