Skip to content

Add keyless Parallel Search MCP example - #5

Open
georgeatparallel wants to merge 1 commit into
01-ai:mainfrom
georgeatparallel:parallel-search-b7c355da-241c-4c18-a7e7-eeed60a35d66
Open

georgeatparallel wants to merge 1 commit into
01-ai:mainfrom
georgeatparallel:parallel-search-b7c355da-241c-4c18-a7e7-eeed60a35d66

Conversation

@georgeatparallel

Copy link
Copy Markdown

Adds a runnable search-and-fetch example to the existing MCP demos. From examples/components/mcp, run:

uv run parallel_search.py "LangCrew MCP tools" --fetch-url https://github.com/01-ai/langcrew

It loads web_search and web_fetch through LangCrew's MCPToolAdapter, uses Streamable HTTP with a project User-Agent, and prints source URLs and excerpts as JSON. No Parallel API key or LLM is required; the anonymous endpoint has lower rate limits. Existing demos and framework defaults stay unchanged.

The example dependencies now keep MCP SDK and FastMCP on their compatible major versions. An unconstrained install selected MCP SDK 2, which lacks RequestContext required by the LangChain MCP adapter.

Validation: ran the CLI against live search and fetch with an empty home directory and no API keys, verified useful results and the outgoing User-Agent on discovery and both tool calls, and checked Ruff lint and formatting.

Btw - I'm a devrel engineer at Parallel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant