MCPServerStdio runs an MCP server locally over standard input and output. It starts the server as a subprocess and manages that subprocess while an agent uses the server’s tools. section 3.3.3
Treat STDIO as the local transport choice: the agent launches the server with a command and arguments. Switching to SSE changes the transport configuration, not the agent’s core logic. section 3.3.3 section 3.5
A minimal integration follows this sequence:
- Choose the server command, such as npx, and provide its package arguments. section 3.3.3
- Create MCPServerStdio with a name and params containing command and args. section 3.3.3
- Enter it with an asynchronous context manager so the subprocess lifecycle is cleaned up. section 9.6
- Pass the connected server in the agent’s mcp_servers configuration. section 3.3.3
- Validate the server’s available tools and restrict the exposed folder or capabilities. section 3.3.3
Local Filesystem server
A filesystem agent can launch @modelcontextprotocol/server-filesystem through npx, pass the current directory as its allowed path, and register the MCPServerStdio instance. The agent can then list, read, write, create, or delete files in that folder, so an isolated directory is safer. section 3.3.3
Table 3.3 Common standard MCP servers
| Name |
Description |
Run with (npx ...) |
Use case |
| Filesystem |
Secure local filesystem access (read/write) within a folder |
|
Open, edit, or create local files through an AI assistant |
| Sequential thinking |
Decompose tasks and plan complex goals |
|
Decompose a goal into tasks that can be planned and executed |
| Google Drive |
Browse, search, and retrieve files from Google Drive |
|
Access or share cloud documents and collaborate via AI |
| Google Calendar |
Read calendars, find free slots, and add/remove events |
|
Schedule meetings or check your agenda with natural-language requests |
| Todoist |
Task management interface to list, create, or complete to-dos |
|
Keep personal or team to-do lists up to date |
| Notion |
Read, update, or create Notion pages and databases |
|
Manage notes, wikis, and project plans programmatically |
| Slack |
Post messages and read channels via the Slack API |
|
Send alerts or summarize discussions inside Slack |
| Brave Search |
Perform web searches and return ranked results |
|
Retrieve fresh web information or do quick research |
| GitHub |
Browse repos, read files, create commits/PRs |
|
Automate code reviews, update docs, or fetch project files |
| Google Maps |
Look up places, directions, and travel data |
|
Answer location or routing questions and plan trips |
| Fetch |
Fetch and preprocess web page content for LLMs |
|
Pull article or API data, then summarize or analyze it |
Compare standard MCP servers by capability, launch command, and use case before selecting a local STDIO integration. section 3.3.3
