Proposal: Make `output=md` the default for the MCP search tool
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 65/100
Research direction
Start at the MCP search tool and trace how the default params.output value is selected and how the md and json response paths are handled. Confirm that omitted output produces Markdown, explicit md remains Markdown, and explicit json retains the current JSON response.
Written by the indexing model from the issue text.
Description
Summary
Change the default response format of the MCP search tool from JSON to Markdown.
When callers omit params.output, the server would use output=md. Callers could retain the current behavior by explicitly passing output=json.
Motivation
The search tool currently returns JSON by default. Our internal tests show that Markdown responses use approximately 50% fewer tokens on average.
Most MCP tool responses are consumed by AI clients and agents rather than parsed directly by application code. Markdown is easier for models to read and avoids spending context tokens on deeply nested JSON syntax.
Existing agents should continue to work in normal use because they receive tool responses as model context and can read Markdown directly.
This change could break clients that assume the default response is JSON and parse it as such. I expect this to be uncommon because MCP tool results are primarily passed to agents. Applications that need a stable, machine-readable response should pass output=json explicitly or use the SerpApi API or an official language SDK.
Proposed behavior
searchwithoutparams.outputreturns Markdown.searchwithparams.output="md"returns Markdown.searchwithparams.output="json"retains the current JSON response.
- Dominant language
- Python
- Stars
- 171
- Forks
- 41
- Avg merge
- 6h 37m
- Merged PRs (30d)
- 3
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from serpapi/serpapi-mcp
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 35/100
serpapi/serpapi-mcp#56 ·
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
serpapi/serpapi-mcp#38 · 8 comments · 2 reactions ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
serpapi/serpapi-mcp#34 · 2 comments · 1 reaction ·
All issues in serpapi/serpapi-mcp
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
bancolombia/sentinel#23 ·
-
test md OpenCI
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
integration:quickjs org:external priority:backlog topic:code-interpreter topic:middleware type:feature
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
langchain-ai/deepagents#6450 ·
-
bug client
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100