# Microsoft MCP — Official Model Context Protocol SDK > Microsoft MCP provides official Model Context Protocol building blocks and samples so teams wire reliable tools into agents without ad‑hoc contracts. ## Install Merge the JSON below into your `.mcp.json`: ## Quick Use 1. Install / run: ```bash git clone https://github.com/microsoft/mcp && cd mcp ``` 2. Start / smoke test: ```bash sed -n '1,220p' README.md ``` 3. Verify: - From the README, run one sample end-to-end and confirm your MCP client can list tools and call a non-destructive method. ## Intro Microsoft MCP provides official Model Context Protocol building blocks and samples so teams wire reliable tools into agents without ad‑hoc contracts. - **Best for:** Teams adopting MCP who want an official reference implementation and reusable patterns - **Works with:** MCP clients + MCP servers; use the repo samples as the baseline - **Setup time:** 15 minutes ## Practical Notes - Setup time ~15 minutes (clone + follow the smallest sample in the README) - Two measurable checks: tools list returns >0, and one read-only call returns structured output - GitHub stars + forks (verified): see Source & Thanks The biggest MCP pitfall is treating it as ‘just another plugin’. Make it boring: define a small set of servers, lock down credentials, and require a smoke test that proves tool calls are deterministic. Use this repo to standardize the contract before you scale to more tools. ### FAQ **Q: What do I get from this repo?** A: An official starting point: core components, examples, and conventions you can standardize on. **Q: Do I need to adopt everything?** A: No. Start with one sample, then copy only the patterns that fit your stack. **Q: How do I keep it safe?** A: Treat MCP servers as privileged: restrict credentials, scope permissions, and log tool calls. ## Source & Thanks > Source: https://github.com/microsoft/mcp > License: MIT > GitHub stars: 3,139 · forks: 486 --- ## 快速使用 1. 安装 / 运行: ```bash git clone https://github.com/microsoft/mcp && cd mcp ``` 2. 启动 / 冒烟测试: ```bash sed -n '1,220p' README.md ``` 3. 验证: - 按 README 跑通一个最小示例,确认你的 MCP 客户端能列出工具并调用一个“只读/无副作用”的方法。 ## 简介 Microsoft MCP 提供官方的 Model Context Protocol 组件与示例,帮助团队把“可调用工具”接入 agent,并用统一约定保持接口稳定、可维护,减少重复造轮子。 - **适合谁:** 准备采用 MCP 的团队,希望先用官方参考实现把模式跑通 - **可搭配:** 支持 MCP 的客户端 + MCP server;以仓库示例为基线 - **准备时间:** 15 分钟 ## 实战建议 - 上手约 15 分钟(clone 后按 README 的最小示例跑通) - 两项可量化验收:tools 列表数量 >0;一次只读调用返回结构化结果 - GitHub stars + forks(已核验):见「来源与感谢」 MCP 最常见的坑是把它当成“随便接个插件”。正确做法是把它做成可控基础设施:限定少量 server、锁紧凭证、并要求可重复的冒烟测试。先用该仓库把契约标准化,再扩展更多工具。 ### FAQ **这个仓库能直接给我什么?** A: 一套官方起步模板:核心组件、示例与约定,适合做团队统一标准。 **必须全部照搬吗?** A: 不必。先跑通一个示例,再挑适合你技术栈的模式复用。 **怎么保证安全?** A: 把 MCP server 当作高权限组件:收紧凭证、最小权限、并记录工具调用日志。 ## 来源与感谢 > Source: https://github.com/microsoft/mcp > License: MIT > GitHub stars: 3,139 · forks: 486 --- Source: https://tokrepo.com/en/workflows/microsoft-mcp-official-model-context-protocol-sdk Author: MCP Hub