Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Introducing the Model Context Protocol

Introducing the Model Context Protocol

Avatar for yuuki shimizu

yuuki shimizu

December 06, 2024
Tweet

More Decks by yuuki shimizu

Other Decks in Programming

Transcript

  1. AGENDA • Overview • Model Context Protocol • Implementation and

    Adoption • Getting Started with MCP • Developer Guide • Community and Collaboration • Technical Details • Quickstart Guide • Advanced Examples • Expanding Capabilities • Additional MCP Clients • Troubleshooting
  2. OVERVIEW • Claude • ResearchCompanyCareersNews • Announcements • Introducing the

    Model Context Protocol • 2024年11月26日•3 min read
  3. INTRODUCTION TO MCP • Introduction of MCP • A new

    standard for connecting AI assistants to data systems • Includes content repositories, business tools, and development environments • Purpose of MCP • Helps frontier models produce better, more relevant responses • Current Industry Challenges • AI assistants are isolated from data • Information silos and legacy systems create barriers • Custom implementations needed for each new data source • Solution Provided by MCP • Universal, open standard for connecting AI systems with data sources • Replaces fragmented integrations with a single protocol
  4. CHALLENGES ADDRESSED BY MCP • AI Assistants and Industry Investments

    • Rapid advances in reasoning and quality • Heavy investment in model capabilities • Challenges of Data Isolation • AI models trapped behind information silos • Legacy systems causing constraints • Custom Implementations for New Data Sources • Difficulty in scaling truly connected systems • MCP Solution • Universal, open standard for connecting AI systems • Replaces fragmented integrations with a single protocol • Simplifies and improves data access for AI systems
  5. MODEL CONTEXT PROTOCOL • Model Context Protocol Specification • Detailed

    protocol specifications • SDKs for implementation • Local MCP Server Support • Integration in Claude Desktop apps • Open-source Repository • Collection of MCP servers
  6. IMPLEMENTATION AND ADOPTION • Claude 3.5 Sonnet's Capabilities • Quickly

    builds MCP server implementations • Connects important datasets with AI-powered tools • Pre-built MCP Servers for Popular Systems • Google Drive, Slack, GitHub, Git, Postgres, Puppeteer • Early Adopters and Collaborators • Block and Apollo have integrated MCP • Development tools companies like Zed, Replit, Codeium, Sourcegraph • Block's Commitment to Open Source • Open source as a foundation and commitment • Model Context Protocol bridges AI to real-world applications • Standard Protocol for Developers
  7. BUILDING MCP SERVER IMPLEMENTATIONS • Quick MCP Server Implementations •

    Rapidly connect important datasets • Utilize AI-powered tools • Pre-built MCP Servers • Google Drive • Slack • GitHub • Git • Postgres • Puppeteer
  8. EARLY ADOPTERS AND INTEGRATIONS • Early Adopters of MCP •

    Block and Apollo have integrated MCP into their systems • Development Tools Companies Working with MCP • Zed, Replit, Codeium, and Sourcegraph are enhancing their platforms with MCP • Enabling AI agents to retrieve relevant information • Producing more nuanced and functional code with fewer attempts • Block's Commitment to Open Source • Open source as a foundation and commitment to meaningful change • Creating technology that serves as a public good • Benefits of Open Technologies like MCP • Connecting AI to real-world applications • Ensuring innovation is accessible, transparent, and collaborative
  9. STANDARD PROTOCOL BENEFITS • Unified Standard Protocol • Eliminates the

    need for separate connectors for each data source • Streamlines the development process • AI Systems Maintaining Context • Ensures seamless movement between different tools and datasets • Replaces fragmented integrations • Sustainable Architecture • Promotes a more sustainable and efficient system • Supports the maturation of the ecosystem
  10. GETTING STARTED WITH MCP • Building and Testing MCP Connectors

    • Developers can start today • Supported by all Claude.ai plans • Claude for Work Customers • Test MCP servers locally • Connect Claude to internal systems and datasets • Future Developer Toolkits • Deploy remote production MCP servers • Serve entire Claude for Work organization
  11. TESTING MCP SERVERS LOCALLY • Local Testing of MCP Servers

    • Allows connection of Claude to internal systems • Enables integration with internal datasets • Upcoming Developer Toolkits • Facilitate deployment of remote production MCP servers • Support for entire Claude for Work organization
  12. CONNECTING MCP SERVERS • Availability of MCP Connectors • Developers

    can start building and testing MCP connectors immediately • Support for MCP Servers • All Claude.ai plans support connecting MCP servers • Claude Desktop App Integration • MCP servers can be connected to the Claude Desktop app
  13. DEVELOPER GUIDE • Install MCP Servers • Use the Claude

    Desktop app for pre-built servers • Quickstart Guide • Build your first MCP server with our guide • Contribute to Open-Source • Participate in our repositories of connectors and implementations
  14. COMMUNITY AND COLLABORATION • Commitment to Collaboration • Building MCP

    as an open-source project • Encouraging community feedback • Engagement with Various Stakeholders • AI tool developers • Enterprises leveraging existing data • Early adopters exploring new frontiers • Invitation to Shape the Future • Collaborate on context-aware AI
  15. FEEDBACK AND COLLABORATION • Commitment to Collaboration • Building MCP

    as a collaborative project • Open-source initiative • Seeking Feedback • Encouraging input from AI tool developers • Inviting enterprises to leverage existing data • Welcoming early adopters to explore the frontier • Future of Context-Aware AI • Invitation to build the future together
  16. TECHNICAL DETAILS • Overview of MCP Protocol • Enables secure

    connections between host applications and local services • Open protocol, usable by any application • Setting Up SQLite Database • Instructions to set up a local SQLite database • Connecting Claude Desktop to SQLite • Steps to connect through MCP • Querying and Analyzing Data • Securely query and analyze data • Integration Limitations • Currently supports only local MCP servers • Available only in Claude Desktop app
  17. HOW MCP WORKS • Introduction to MCP • MCP stands

    for Model Context Protocol • It is an open protocol • Functionality of MCP • Enables secure interactions • Allows controlled interactions • Application of MCP • Used between AI applications • Can interact with local or remote resources
  18. GENERAL ARCHITECTURE • Client-Server Architecture • MCP follows a client-server

    model • Host application connects to multiple servers • MCP Hosts • Programs like Claude Desktop, IDEs, or AI tools • Access resources through MCP • MCP Clients • Protocol clients • Maintain 1:1 connections with servers • MCP Servers • Local Resources • Remote Resources
  19. SETTING UP LOCAL SQLITE DATABASE • Set up a local

    SQLite database • Install SQLite on your local machine • Create a new database file • Connect Claude Desktop to SQLite through MCP • Configure MCP settings in Claude Desktop • Establish a secure connection to the SQLite database • Query and analyze your data securely • Use SQL queries to interact with your data • Analyze data within Claude Desktop • Open protocol for integration • Any application can integrate MCP • Standardized connection for IDEs, AI tools, and other software
  20. CONFIGURING CLAUDE DESKTOP • Open Configuration File • Navigate to

    ~/Library/Application Support/Claude/claude_desktop_config.json • Use a text editor like VS Code • Add Configuration • Insert the provided JSON configuration • Replace YOUR_USERNAME with your actual username • Configuration Details • Defines an MCP server named “sqlite” • Launches it using uvx mcp-server-sqlite • Connects to your test database • Save and Restart • Save the configuration file
  21. TESTING MCP INTEGRATION • Verification Process • Send a prompt

    to Claude Desktop • Example prompt: Connect to SQLite database and list products with prices • Claude Desktop Actions • Connects to SQLite MCP server • Queries the local database • Formats and presents the results • Successful Query • Claude Desktop successfully queries the SQLite database
  22. ADVANCED EXAMPLES • Basic Queries • Simple data retrieval tasks

    • Data Analysis • In-depth examination of data • Complex Operations • Advanced data manipulation
  23. EXPANDING CAPABILITIES • Local Integration Capabilities • Add servers to

    configuration for enhanced integration • Required MCP Servers • File System Access • PostgreSQL Connection • Node.js Installation • Ensure Node.js is installed on your machine
  24. ADDITIONAL MCP CLIENTS • Zed Editor • High-performance code editor

    • Multiplayer support • Built-in MCP support for AI- powered coding assistance • Cody • Code intelligence platform • Features MCP integration • Enhanced code search and analysis capabilities
  25. TROUBLESHOOTING • Common Issues with Claude Desktop • Nothing showing

    up on the screen • Potential MCP errors • Database errors affecting performance • Steps to Diagnose • Check for MCP errors • Verify database connections
  26. NEXT STEPS • Create Your Own MCP Servers • Enhance

    LLM clients with new capabilities • Explore Examples • Browse example servers • Discover potential applications