Close Menu
    DevStackTipsDevStackTips
    • Home
    • News & Updates
      1. Tech & Work
      2. View All

      The Power Of The Intl API: A Definitive Guide To Browser-Native Internationalization

      August 8, 2025

      This week in AI dev tools: GPT-5, Claude Opus 4.1, and more (August 8, 2025)

      August 8, 2025

      Elastic simplifies log analytics for SREs and developers with launch of Log Essentials

      August 7, 2025

      OpenAI launches GPT-5

      August 7, 2025

      3 portable power stations I travel everywhere with (and how they differ)

      August 9, 2025

      I tried Lenovo’s new rollable ThinkBook and can’t go back to regular-sized screens

      August 9, 2025

      The Creators of the Acclaimed Silent Hill 2 Remake Present a Deep Dive Into the Story of Their Newest Horror Game IP — and It’s So Bizarre and Insane That It’s Convinced Me To Put It on My Wishlist

      August 9, 2025

      Forget Back to School Deals — Lenovo’s Clearance Sale is Where You’ll Find Amazing Discounts on Laptops, Mini PCs, and More, While Supplies Last

      August 9, 2025
    • Development
      1. Algorithms & Data Structures
      2. Artificial Intelligence
      3. Back-End Development
      4. Databases
      5. Front-End Development
      6. Libraries & Frameworks
      7. Machine Learning
      8. Security
      9. Software Engineering
      10. Tools & IDEs
      11. Web Design
      12. Web Development
      13. Web Security
      14. Programming Languages
        • PHP
        • JavaScript
      Featured

      spatie/laravel-flare

      August 9, 2025
      Recent

      spatie/laravel-flare

      August 9, 2025

      Establishing Consistent Data Foundations with Laravel’s Database Population System

      August 8, 2025

      Generate Postman Collections from Laravel Routes

      August 8, 2025
    • Operating Systems
      1. Windows
      2. Linux
      3. macOS
      Featured

      The Creators of the Acclaimed Silent Hill 2 Remake Present a Deep Dive Into the Story of Their Newest Horror Game IP — and It’s So Bizarre and Insane That It’s Convinced Me To Put It on My Wishlist

      August 9, 2025
      Recent

      The Creators of the Acclaimed Silent Hill 2 Remake Present a Deep Dive Into the Story of Their Newest Horror Game IP — and It’s So Bizarre and Insane That It’s Convinced Me To Put It on My Wishlist

      August 9, 2025

      Forget Back to School Deals — Lenovo’s Clearance Sale is Where You’ll Find Amazing Discounts on Laptops, Mini PCs, and More, While Supplies Last

      August 9, 2025

      The Gaming Desktop I’ve Relied on More Than Any Other Is More Powerful and Sleeker Than Ever — But Damn, It’s Expensive

      August 9, 2025
    • Learning Resources
      • Books
      • Cheatsheets
      • Tutorials & Guides
    Home»Development»How to Create Serverless AI Agents with Langbase Docs MCP Server in Minutes

    How to Create Serverless AI Agents with Langbase Docs MCP Server in Minutes

    May 6, 2025

    Building serverless AI agents has recently become a lot simpler. With the Langbase Docs MCP server, you can instantly connect AI models to Langbase documentation – making it easy to build composable, agentic AI systems with memory without complex infrastructure.

    In this guide, you’ll learn how to set up the Langbase Docs MCP server inside Cursor (an AI code editor), and build a summary AI agent that uses Langbase docs as live, on-demand context.

    Here’s what we’ll cover:

    • Prerequisites

    • What is Model Context Protocol (MCP)?

    • Anthropic’s role in launching MCP

    • Cursor AI code editor

    • What is Langbase and why is its Docs MCP server useful?

    • How to set up the Langbase Docs MCP server in Cursor?

    • How to use Langbase Docs MCP server in Cursor AI?

    • Use case: Build a summary AI Agent with Langbase Docs MCP server

    Prerequisites

    Before we begin creating the agent, you’ll need to have some things setup and some tools ready to go.

    In this tutorial, I’ll be using the following tech stack:

    • Langbase – the platform to build and deploy your serverless AI agents.

    • Langbase SDK – a TypeScript AI SDK, designed to work with JavaScript, TypeScript, Node.js, Next.js, React, and the like.

    • Cursor – An AI code editor just like VS Code.

    You’ll also need to:

    • Sign up on Langbase to get access to the API key.

    What is Model Context Protocol (MCP)?

    Model Context Protocol (MCP) is an open protocol that standardizes how applications provide external context to large language models (LLMs). With MCP, developers can connect AI models to various tools and data sources like documentation, APIs, and databases – in a clean, consistent way.

    Instead of relying solely on prompts, MCP allows LLMs to call custom tools (like documentation fetchers or API explorers) during a conversation.

    MCP General Architecture

    At its core, MCP follows a client-server architecture where a host application can connect to multiple servers.

    Here’s the general architecture of what it looks like:

    AD_4nXdjfGegMH-jHoYjgT3dRPhigOoIz8em0NyexLrfqwNEwdX7rvnbnCxfJG7nKqLk5fYcFu0_D5D8-DMb3vg0nLF4r-N8LlfH6IyFz18HjGZYlZ2J2_cq-jKq3Y6X_LPVxIz3rPs7?key=aHnkCxEY2NrPpuL4oNSIQJNY

    The Model Context Protocol architecture lets AI clients (like Claude, IDEs, and developer tools) securely connect to multiple local or remote data sources in real time. MCP clients communicate with one or more MCP servers, which act as bridges to structured data – whether from local files, databases, or remote APIs.

    This setup allows AI models to retrieve fresh, relevant context from different sources seamlessly, without embedding data directly into the model.

    Anthropic’s Role in Launching MCP

    Anthropic introduced MCP as part of their vision to make LLMs tool-augmented by default. MCP was originally built to expand Claude’s capabilities, but it’s now available more broadly and supported in developer-friendly environments like Cursor and Claude Desktop.

    By standardizing how tools integrate into LLM workflows, MCP makes it easier for developers to extend AI systems without custom plugins or API hacks.

    50ed79a0-3728-4cca-92a1-0f48ded38049

    Cursor AI Code Editor

    Cursor is a developer-first AI code editor that integrates LLMs (like Claude, GPT, and more) directly into your IDE. Cursor supports MCP, meaning you can quickly attach custom tool servers – like the Langbase Docs MCP server – and make them accessible as AI-augmented tools while you code.

    Think of Cursor as VS Code meets AI agents – with built-in support for smart tools like docs fetchers and code examples retrievers.

    What is Langbase and Why is its Docs MCP Server Useful?

    Langbase is a powerful serverless AI platform for building AI agents with memory. It helps developers build AI-powered apps and assistants by connecting LLMs directly to their data, APIs, and documentation.

    The Langbase Docs MCP Server provides access to the Langbase documentation and API reference. This server allows you to use the Langbase documentation as context for your LLMs.

    By connecting this server to Cursor (or any MCP-supported IDE), you can make Langbase documentation available to your AI agents on demand. This means less context-switching, faster workflows, and smarter assistance when building serverless agentic applications.

    How to Set Up the Langbase Docs MCP Server in Cursor

    Let’s walk through setting up the server step-by-step.

    1. Open Cursor Settings

    Launch Cursor and open Settings. From the left sidebar, select MCP.

    2. Add a New MCP Server

    Click the yellow + Add new global MCP server button.

    Add new global MCP server

    3. Configure the Langbase Docs MCP Server

    Paste the following configuration into the mcp.json file:

    {
        "mcpServers": {
            "Langbase": {
            "command": "npx",
            "args": ["@langbase/cli","docs-mcp-server"]
            }
        }
    }
    

    4. Start the Langbase Docs MCP Server

    In your terminal, run:

    pnpm add @langbase/cli
    

    And then run this command:

    pnpm dlx @langbase/cli docs-mcp-server
    

    5. Enable the MCP Server in Cursor

    In the MCP settings, make sure the Langbase server is toggled to Enabled.

    Langbase server toggled to "Enabled" in Cursor

    How to Use Langbase Docs MCP Server in Cursor AI

    Once everything’s all set up, Cursor’s AI agent can now call Langbase docs tools like:

    • docs_route_finder

    • sdk_documentation_fetcher

    • examples_tool

    • guide_tool

    • api_reference_tool

    For example, you can ask the Cursor agent:

    “Show me the API reference for Langbase Memory”
     or
     “Find a code example of creating an AI agent pipe in Langbase”
    

    The AI will use the Docs MCP server to fetch precise documentation snippets – directly inside Cursor.

    Use Case: Build a Summary AI Agent with Langbase Docs MCP Server

    Let’s build a summary agent that summarizes context using the Langbase SDK, powered by the Langbase Docs MCP server inside the Cursor AI code editor.

    1. Open an empty folder in Cursor and launch the chat panel (Cmd+Shift+I on Mac or Ctrl+Shift+I on Windows).

    2. Switch to Agent mode from the mode selector and pick your preferred LLM (we’ll use Claude 3.5 Sonnet for this demo).

    3. In the chat input, enter the following prompt:
      “In this directory, using Langbase SDK, create the summary pipe agent. Use TypeScript and pnpm to run the agent in the terminal.“

    4. Cursor will automatically invoke MCP calls, generate the required files and code using Langbase Docs as context, and suggest changes. Accept the changes, and your summary agent will be ready. You can run the agent using the commands provided by Cursor and view the results.

    Here’s a demo video of creating this summary agent with a single prompt and Langbase Docs MCP server:

    By combining Langbase’s Docs MCP server with Cursor AI, you’ve learned how to build serverless AI agents in minutes – all without leaving your IDE.

    If you’re building AI agents, tools, or apps with Langbase, this is one of the fastest ways to simplify your development process.

    Happy building! 🚀

    Connect with me by 🙌:

    • Subscribing to my YouTube Channel. If you are willing to learn about AI and agents.

    • Subscribing to my free newsletter “The Agentic Engineer” where I share all the latest AI and agents news/trends/jobs and much more.

    • Follow me on X (Twitter).

    Source: freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More 

    Facebook Twitter Reddit Email Copy Link
    Previous ArticleCVE-2025-47419 – Crestron Automate VX Insecure Communication Vulnerability
    Next Article CVE-2025-46573 – OpenSAMLPassport-WSFed Impersonation Vulnerability

    Related Posts

    Development

    spatie/laravel-flare

    August 9, 2025
    Repurposing Protein Folding Models for Generation with Latent Diffusion
    Artificial Intelligence

    Repurposing Protein Folding Models for Generation with Latent Diffusion

    August 9, 2025
    Leave A Reply Cancel Reply

    For security, use of Google's reCAPTCHA service is required which is subject to the Google Privacy Policy and Terms of Use.

    Continue Reading

    ProtonPlus – modern compatibility tools manager

    Linux

    CVE-2025-7212 – iSourcecode Insurance Management System SQL Injection

    Common Vulnerabilities and Exposures (CVEs)

    SureForms WordPress Plugin Flaw (CVE-2025-6691): Unauthenticated Arbitrary File Deletion Leads to Site Takeover, 200K Sites at Risks

    Security

    CVE-2025-50578 – LinuxServer.io Heimdall HTTP Header Injection and Open Redirect Vulnerability

    Common Vulnerabilities and Exposures (CVEs)

    Highlights

    News & Updates

    Where to buy NVIDIA RTX 5060 Ti: Launch day stock alerts for the new desktop GPU

    April 15, 2025

    NVIDIA’s RTX 5060 Ti desktop GPU is set to launch on April 16, and I’ve…

    MiMo-VL-7B: A Powerful Vision-Language Model to Enhance General Visual Understanding and Multimodal Reasoning

    June 2, 2025

    CVE-2025-46241 – Codepeople Appointment Booking Calendar CSRF-Enabled SQL Injection

    April 22, 2025

    CVE-2025-49446 – Minhlaobao Admin Notes CSRF Vulnerability

    June 6, 2025
    © DevStackTips 2025. All rights reserved.
    • Contact
    • Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.