otherapi_key

Langbase

Langbase is a serverless AI developer platform that enables developers to build, collaborate, and deploy AI agents and applications with composable AI infrastructure.

Verdict

Langbase is an AI infrastructure platform that manages conversational pipelines, memory stores, and document retrieval. In Switchy, @mentioning Langbase lets you spin up new AI workflows (pipes), store context across sessions (memories), organize chat threads, and query documents without leaving your workspace. Teams building custom AI features or managing multiple conversational agents get the most value — you can prototype a new chatbot, wire up memory for a support bot, or audit existing pipes from inside a Space. Setup requires an API key from your Langbase account; no OAuth dance, but you'll need project-level access to create or delete resources.

Common use cases

  • Prototype a new chatbot pipeline from Slack
  • Store customer context across support sessions
  • Audit all active AI pipes in one view
  • Retrieve documents from a memory store mid-conversation
  • Organize chat threads by project or client

Integration

Vendor
Langbase
Category
other
Auth
API_KEY
Tools
10
Composio slug
langbase

Tools

  • Create a new pipe

    Tool to create a new pipe. use after configuring pipe parameters. returns pipe details including api key and url.

  • Create Memory

    Tool to create a new memory. use when storing a new memory record in langbase after confirming memory details.

  • Create Thread

    Tool to create a new conversation thread. use when starting a fresh chat session or grouping messages into a distinct thread.

  • Delete Memory
    destructive

    Tool to delete a specific memory. use when you need to permanently remove a stored memory by its name.

  • Get Thread Details

    Tool to retrieve details of a specific conversation thread. use when you need the full thread details by its id after confirming its existence.

  • List all pipes

    Tool to list all pipes. use after authentication to retrieve the complete list of pipes.

  • List Documents in Memory

    Tool to list documents in a specific memory. use when you need to fetch document metadata (and optionally vectors) from a memory after confirming its name. supports pagination via limit and startafter parameters.

  • List Memories

    Tool to list all memory objects. use when you need to fetch stored memories for context retrieval.

  • List Thread Messages

    Tool to list all messages in a conversation thread. use after obtaining the thread id to fetch its messages.

  • Split Content into Chunks

    Tool to split content into smaller chunks. use when processing large text segments to fit downstream limits.

Setup

Setup guide

  1. 11. Open your Switchy workspace and navigate to Settings > Integrations. 2. Find Langbase in the MCP directory and click Connect. 3. Log into your Langbase account at langbase.com, go to Settings > API Keys, and generate a new key with read/write permissions for pipes, memories, and threads. 4. Paste the API key into Switchy's connection dialog and click Authorize. 5. Return to any Space and type '@Langbase list all pipes' to confirm the connection works — you should see your existing pipes or an empty list if you're starting fresh. 6. To invoke a tool, @mention Langbase in a message followed by your request (e.g. '@Langbase create a new memory called customer-notes'). 7. If a command fails, check that your API key has the necessary scopes and hasn't expired in your Langbase dashboard.

What teammates see: by default, memories from Langbase are scoped to the Space (PROJECT visibility) - you can mark any memory PRIVATE or share it ORG-wide.

Works well with

Top models

Compatibility data appears once enough Spaces have used this MCP together with a given model.

How Switchy teams use it

Not enough Spaces yet to publish anonymised usage stats (we require ≥ 50 Spaces per week).

Starter prompts

List All Pipes

@Langbase list all pipes in my account and show me their names and API endpoints.
Open in a Space →

Create Support Memory

@Langbase create a new memory called support-history with a description 'Customer support conversation logs and ticket context'.
Open in a Space →

Start New Thread

@Langbase create a new thread with the name 'Q1 Product Launch' to track all related discussions.
Open in a Space →

Query Memory Documents

@Langbase list all documents in the memory named onboarding-docs and show me their metadata.
Open in a Space →

Delete Stale Memory

@Langbase delete the memory named old-campaign-data after confirming it's no longer needed.
Open in a Space →

Example outputs

Illustrative - representative of the model's voice and quality, not literal recordings.

Prompt

@Langbase list all my pipes and show me which ones are using the GPT-4 model

Output

Found 7 pipes in your Langbase account. Three are using GPT-4: 'customer-support-bot' (last deployed 2 days ago), 'code-review-assistant' (active, 1.2k runs this month), and 'sales-email-drafter' (paused). The remaining four pipes use Claude 3.5 Sonnet. Each pipe's API key and endpoint URL are available in the full details if you need to integrate them into your application.

Notes

This example demonstrates read-only access to your Langbase pipe inventory. Requires an API key with read permissions. Useful for auditing which LLM models your team is deploying across different workflows. The MCP returns metadata only — it won't execute or modify pipes.

Prompt

@Langbase create a new memory called 'product-docs' and upload our latest API reference markdown file

Output

Created memory 'product-docs' successfully. The memory is now ready to store documents. However, the MCP's current tool set creates the memory container but does not handle file uploads directly — you'll need to use Langbase's document ingestion API or UI to add the markdown file. Once uploaded, this memory can be attached to pipes for retrieval-augmented generation in customer support or internal Q&A workflows.

Notes

This example shows memory creation, a write operation that sets up a knowledge base. The MCP creates the memory object but stops short of uploading documents — that requires additional API calls outside this tool's scope. Be aware that memory storage counts against your Langbase plan limits.

Prompt

@Langbase start a new thread for our 'customer-support-bot' pipe and ask it to summarize the top 3 unresolved issues from the product-docs memory

Output

Created thread `thrd_9x4k2m` and sent your query to the 'customer-support-bot' pipe. The bot retrieved context from 'product-docs' memory and identified: (1) API rate limit confusion (mentioned in 8 documents), (2) webhook signature verification errors (6 documents), and (3) OAuth redirect URI mismatch (4 documents). The thread is now active — you can continue the conversation by referencing this thread ID in follow-up prompts.

Notes

This example combines thread creation with a reasoning task that leverages stored memory. It showcases how Langbase pipes can synthesize information from your knowledge base. The MCP initiates the thread but doesn't stream the pipe's full response — you'll see a summary. Thread IDs persist across sessions for multi-turn conversations.

Use-case deep-dives

Customer support knowledge base lookup

When Langbase beats a static doc site for support teams

A 6-person support team fields 40 tickets a day across Slack and email. They store product docs, past ticket resolutions, and internal runbooks in Langbase memories, then query them via pipes during live conversations. The memory-list and document-list tools let agents confirm what's indexed before pulling an answer. This works when your knowledge base changes weekly and you need versioned retrieval without rebuilding a search index. If your docs are stable and you already have a good search tool, Langbase adds overhead. But if you're stitching together Notion pages, Slack threads, and Google Docs into one queryable layer, the memory abstraction saves you from writing custom embeddings logic. Worth the API key if you're hiring support person number 4 and can't afford a dedicated knowledge engineer.

Multi-client agency chat workflows

How thread management scales agency client handoffs

A 10-person creative agency runs discovery calls with 8 active clients. Each client conversation spawns a Langbase thread that persists context across weeks of back-and-forth. The create-thread and get-thread-details tools let account managers pick up where the last person left off without re-reading Slack history. This shines when your team juggles 5+ concurrent client projects and needs isolated conversation state per client. If you're a solo consultant or a team that works one client at a time, threads are overkill—just use a shared doc. The trade-off: Langbase charges per API call, so high-frequency chat (50+ messages per thread per day) gets expensive fast. Best fit is low-frequency, high-context work where forgetting a client detail costs more than the API bill.

Prototyping AI features before eng build

When pipes let product teams test prompts without code

A 4-person product team wants to test a new AI feature idea—summarizing user feedback from Intercom—before writing production code. They use Langbase's create-pipe tool to spin up a prompt chain in 10 minutes, wire it to a memory holding sample feedback, and share the pipe URL with stakeholders. The list-pipes tool helps them track which experiments are live. This is the right call when you need to validate a feature hypothesis in days, not sprints, and your eng team is underwater. If you're already running inference in-house or your feature needs sub-200ms latency, Langbase's API layer adds latency you can't afford. The buying threshold: if stakeholder buy-in is the blocker and you can tolerate 1-2 second response times, pipes get you to a demo faster than a Jupyter notebook.

Frequently asked

What does the Langbase MCP do in Switchy?

It lets your AI agents create and manage Langbase pipes, memories, and conversation threads without leaving Switchy. You can spin up new pipes with custom parameters, store and retrieve memory records for context, and organize chat sessions into threads. Useful when you're building conversational AI workflows and want to keep everything in one workspace instead of switching between Langbase's dashboard and your code editor.

Do I need a Langbase API key to connect this MCP?

Yes. The MCP uses API key authentication, so you'll need to generate one from your Langbase account settings before connecting. Anyone on your Switchy team with the key can connect the MCP, but only the Langbase account owner can create or revoke API keys. If you're on a shared Langbase workspace, confirm you have the right permissions before connecting.

Can the Langbase MCP update existing pipes or just create new ones?

The MCP can create new pipes and list existing ones, but it doesn't expose tools to update pipe configurations after creation. If you need to change a pipe's parameters, you'll have to do that directly in Langbase's dashboard or via their REST API. The MCP focuses on creation and retrieval workflows, not full CRUD operations on pipes.

How is this different from calling Langbase's API directly?

The MCP wraps Langbase's API into tools your AI agents can call conversationally. Instead of writing code to POST to endpoints, your agent just says "create a pipe with these settings" and the MCP handles the request. You lose some low-level control but gain speed and natural-language flexibility. If you need custom error handling or batch operations, stick with the API.

Who on my team should connect the Langbase MCP?

Whoever owns your Langbase account or has access to its API keys. Once connected in Switchy, any team member can use the MCP's tools in their agents, but the connection itself ties to one Langbase account. If your team shares a Langbase workspace, connect it once and let everyone benefit. If you're on separate accounts, each person needs their own connection.

Data last verified 607 hours ago.Sources aggregated hourly to weekly. See docs/architecture/model-directory.md.