modelcontextprotocol / modelcontextprotocol/python-sdk

[docs] How to run FastMCP with args or env vars?

Open Beginner friendly
#339 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

documentation P2 ready for work
Dominant language
Python
Stars
24.3k
Forks
4k
Avg merge
1d 1h
Merged PRs (30d)
31

Description

https://github.com/modelcontextprotocol/python-sdk/tree/main?tab=readme-ov-file#development-mode

# Development Mode
The fastest way to test and debug your server is with the MCP Inspector:

mcp dev server.py

# Add dependencies
mcp dev server.py --with pandas --with numpy

# Mount local code
mcp dev server.py --with-editable .

This didn't show how to run with args in dev mode.
Expected to see something like this:

mcp install server.py -v API_KEY=abc123 -v DB_URL=postgres://...
mcp install server.py -f .env

However this is not dev mode

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the README's Development Mode section and the existing mcp dev and mcp install examples. Check how the development command accepts server arguments and environment variables, then document the supported invocation or explain the limitation and appropriate alternative. Done means a newcomer can run a development server with the needed configuration from the updated instructions.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli, documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.