1. Conduid
  2. Browser
  3. Brave MCP Langchain
MCP server · Browser

Brave MCP Langchain

A tool that can give you freedom of using Brave search and content fetching using MCP and Langchan

Unclaimed MIT last commit a year ago browser
45Fair

Scored 8 days ago · breakdown

About Brave MCP Langchain

Brave MCP Langchain is an MCP server published by iamatulsingh in the Browser category: a tool that can give you freedom of using Brave search and content fetching using MCP and Langchan.

Six months or more without a commit doesn't mean the server is broken, but check the open issues before depending on it in production.

Install

From source
git clone https://github.com/iamatulsingh/brave-mcp-langchain

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Ask AI

✦

Ask AI about Brave MCP Langchain

Powered by Claude · Grounded in docs

I know everything about Brave MCP Langchain. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

  • ✓README presentThe repository ships documentation.
  • ✓License declaredUsable under a stated license.
  • !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.

3 checks have not been run yet.

Releases

v0.2.0v0.2.0 · 13 Jul 2025Full Changelog: https://github.com/iamatulsingh/brave-mcp-langchain/compare/v0.1.1...v0.2.0
v0.1.1v0.1.1 · 12 Jul 2025Full Changelog: https://github.com/iamatulsingh/brave-mcp-langchain/commits/v0.1.1

README

brave-mcp-langchain

Create venv

uv sync

Install package

uv pip install brave-mcp-langchain

Run MCP server in STDIO mode

uvx brave-mcp-langchain

To run MCP server in SSE mode

uvx brave-mcp-langchain sse 5003

MCP Setting

{
  "mcpServers": {
    "brave-mcp-langchain": {
      "disabled": false,
      "timeout": 60,
      "type": "stdio",
      "command": "uvx",
      "args": [
        "brave-mcp-langchain"
      ]
    }
  }
}

Use as Langchain tool

It can also be used as Langchain tool. Below is how to validate tool.

import httpx
import asyncio
from langchain.tools import Tool
from brave_mcp_langchain import brave_tool

async def test_search():
    result = await brave_tool.search_tool.ainvoke({"query": "LangGraph overview", "max_results": 10})
    print(result)

    result = await brave_tool.fetch_content_tool.ainvoke({
        "url": "https://iamatulsingh.github.io"
    })
    print(result)

asyncio.run(test_search())

Use with langchain example

import asyncio
from langchain.agents import initialize_agent
from langchain.agents.agent_types import AgentType
from langchain_ollama import ChatOllama
from brave_mcp_langchain import brave_tool

llm = ChatOllama(model="llama3.1:8b")

tools = [
    brave_tool.search_tool,
    brave_tool.fetch_content_tool
]

agent = initialize_agent(
    tools=[brave_tool.search_tool, brave_tool.fetch_content_tool],
    llm=llm,
    agent=AgentType.STRUCTURED_CHAT_ZERO_SHOT_REACT_DESCRIPTION,
    verbose=True
)

async def run_agent_query():
    response = await agent.ainvoke(
        "Search for 'iamatulsingh' overview, then fetch content from https://iamatulsingh.github.io"
    )
    print("\nAgent Response:")
    print(response)

asyncio.run(run_agent_query())

🧠 Inspiration & Attribution

This project, brave-mcp-langchain, was inspired by and partially based on the excellent work in duckduckgo-mcp-server by @nickclyde. That project laid the groundwork for integrating DuckDuckGo search and content fetching into the MCP ecosystem.

While brave-mcp-langchain extends the concept to support Brave Search and LangChain workflows, several architectural ideas and implementation patterns were adapted from duckduckgo-mcp-server, which is licensed under the MIT License.

I'm grateful for the open-source community and contributors who make projects like this possible. If you’re interested in DuckDuckGo-based search tools, definitely check out the original repository!

README copy captured when this server was indexed; it may lag the repository. The original is authoritative.

Questions

About Brave MCP Langchain

How do I install Brave MCP Langchain?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is Brave MCP Langchain safe to use with an AI agent?

Its trust score is 45 out of 100 (fair). It passes 2 of the 3 static security checks run so far; the failures are listed above. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Brave MCP Langchain still maintained?

The last commit was a year ago. That's long enough that you should check whether the maintainer is responding to issues before depending on it.