Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 16 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ This MCP server provides the following tools:

```

Or install the server as a local Python package:
```bash
pip install .
```

4. Set up environment variables:
```bash
# Create .env file for your API keys
Expand All @@ -69,6 +74,11 @@ This MCP server provides the following tools:
uv run server.py
```

If installed with `pip install .`, run:
```bash
financial-datasets-mcp
```

## Connecting to Claude Desktop

1. Install [Claude Desktop](https://claude.ai/desktop) if you haven't already
Expand All @@ -85,19 +95,17 @@ This MCP server provides the following tools:
{
"mcpServers": {
"financial-datasets": {
"command": "/path/to/uv",
"args": [
"--directory",
"/absolute/path/to/financial-datasets-mcp",
"run",
"server.py"
]
"command": "financial-datasets-mcp",
"args": []
}
}
}
```

Replace `/path/to/uv` with the result of `which uv` and `/absolute/path/to/financial-datasets-mcp` with the absolute path to this project.
If you prefer using `uv` from a source checkout, keep `command` set to the
absolute path returned by `which uv` and pass `--directory`,
`/absolute/path/to/financial-datasets-mcp`, `run`, and `server.py` in
`args`.

4. Restart Claude Desktop

Expand Down
14 changes: 12 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,21 @@
[project]
name = "mcp-server"
name = "financial-datasets-mcp-server"
version = "0.1.0"
description = "Add your description here"
description = "MCP server for the Financial Datasets stock market API"
readme = "README.md"
requires-python = ">=3.11"
dependencies = [
"httpx>=0.28.1",
"mcp[cli]>=1.3.0",
"python-dotenv>=1.0.0",
]

[project.scripts]
financial-datasets-mcp = "server:main"

[build-system]
requires = ["setuptools>=77"]
build-backend = "setuptools.build_meta"

[tool.setuptools]
py-modules = ["server"]
8 changes: 7 additions & 1 deletion server.py
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,9 @@ async def get_sec_filings(
# Stringify the SEC filings
return json.dumps(filings, indent=2)

if __name__ == "__main__":

def main() -> None:
"""Run the Financial Datasets MCP server."""
# Log server startup
logger.info("Starting Financial Datasets MCP Server...")

Expand All @@ -374,3 +376,7 @@ async def get_sec_filings(

# This line won't be reached during normal operation
logger.info("Server stopped")


if __name__ == "__main__":
main()