Skip to content

Commit 238fa9b

Browse files
authored
Merge pull request #1 from polygon-io/dan/readme-polish
Readme Polish + License
2 parents 985b3ab + c5ae472 commit 238fa9b

File tree

4 files changed

+93
-27
lines changed

4 files changed

+93
-27
lines changed

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2025 Polygon.io
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 72 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
<a href="https://polygon.io">
2+
<div align="center">
3+
<picture>
4+
<source media="(prefers-color-scheme: light)" srcset="assets/polygon_banner_lightmode.png">
5+
<source media="(prefers-color-scheme: dark)" srcset="assets/polygon_banner_darkmode.png">
6+
<img alt="Polygon.io logo" src="assets/polygon_banner_lightmode.png" height="100">
7+
</picture>
8+
</div>
9+
</a>
10+
<br>
11+
12+
> [!IMPORTANT]
13+
> :test_tube: This project is experimental and could be subject to breaking changes.
14+
115
# Polygon.io MCP Server
216

317
A [Model Context Protocol (MCP)](https://modelcontextprotocol.io/) server that provides access to [Polygon.io](https://polygon.io) financial market data API through an LLM-friendly interface.
@@ -19,26 +33,55 @@ This server exposes all Polygon.io API endpoints as MCP tools, providing access
1933
### Prerequisites
2034

2135
- Python 3.8+
22-
- A Polygon.io API key ([Get one here](https://polygon.io))
36+
- A Polygon.io API key <br> [![Button]][Link]
37+
- [Astral UV](https://docs.astral.sh/uv/getting-started/installation/)
38+
- For existing installs, check that you have a version that supports the `uvx` command.
2339

24-
### Direct Installation
40+
### Claude Code
2541

26-
```bash
27-
# Install dependencies
28-
uv sync
29-
30-
# Run the server
31-
POLYGON_API_KEY=your_api_key_here uv run mcp_polygon
32-
```
33-
34-
### Integration with Claude
35-
36-
For Claude users, you can add the Polygon MCP server:
42+
Use the following command to add the Polygon MCP server to your local environment.
3743

3844
```bash
3945
# Claude CLI
4046
claude mcp add polygon -e POLYGON_API_KEY=your_api_key_here -- uv run /path/to/mcp_polygon/entrypoint.py
4147
```
48+
This command will install the MCP server in your current project.
49+
If you want to install it globally, you can run the command with `-s <scope>` flag.
50+
See `claude mcp add --help` for more options.
51+
52+
You can also run `claude mcp add-from-claude-desktop` if the MCP server is installed already for Claude Desktop.
53+
54+
### Claude Desktop
55+
56+
1. Follow the [Claude Desktop MCP installation instructions](https://modelcontextprotocol.io/quickstart/user) to complete the initial installation and find your configuration file.
57+
1. Use the following example as reference to add Polygon's MCP server.
58+
Make sure you complete the various fields.
59+
1. Path find your path to `uvx`, run `which uvx` in your terminal.
60+
2. Replace `<your_api_key_here>` with your actual Polygon.io API key.
61+
3. Replace `<your_home_directory>` with your home directory path, e.g., `/home/username` (Mac/Linux) or `C:\Users\username` (Windows).
62+
63+
<details>
64+
<summary>claude_desktop_config.json</summary>
65+
66+
```json
67+
{
68+
"mcpServers": {
69+
"polygon": {
70+
"command": "<path_to_your_uvx_install>/uvx",
71+
"args": [
72+
"--from",
73+
"git+https://github.com/polygon-io/mcp_polygon@master",
74+
"mcp_polygon"
75+
],
76+
"env": {
77+
"POLYGON_API_KEY": "<your_api_key_here>",
78+
"HOME": "<your_home_directory>"
79+
}
80+
}
81+
}
82+
}
83+
```
84+
</details>
4285

4386
## Usage Examples
4487

@@ -66,22 +109,18 @@ This MCP server implements all Polygon.io API endpoints as tools, including:
66109

67110
Each tool follows the Polygon.io SDK parameter structure while converting responses to standard JSON that LLMs can easily process.
68111

69-
## Configuration
70-
71-
### Environment Variables
72-
73-
- `POLYGON_API_KEY` (required): Your Polygon.io API key
74-
75112
## Development
76113

77-
### Building and Publishing
114+
### Running Locally
115+
116+
Check to ensure you have the [Prerequisites](#prerequisites) installed.
78117

79118
```bash
80119
# Sync dependencies
81120
uv sync
82121

83-
# Build package distributions
84-
uv build
122+
# Run the server
123+
POLYGON_API_KEY=your_api_key_here uv run mcp_polygon
85124
```
86125

87126
### Debugging
@@ -94,12 +133,18 @@ npx @modelcontextprotocol/inspector uv --directory /path/to/mcp_polygon run mcp_
94133

95134
This will launch a browser interface where you can interact with your MCP server directly and see input/output for each tool.
96135

97-
## License
98-
99-
[License information]
100-
101136
## Links
102-
103137
- [Polygon.io Documentation](https://polygon.io/docs)
104138
- [Model Context Protocol](https://modelcontextprotocol.io)
105139
- [MCP Python SDK](https://github.com/modelcontextprotocol/python-sdk)
140+
141+
## Contributing
142+
If you found a bug or have an idea for a new feature, please first discuss it with us by submitting a new issue.
143+
We will respond to issues within at most 3 weeks.
144+
We're also open to volunteers if you want to submit a PR for any open issues but please discuss it with us beforehand.
145+
PRs that aren't linked to an existing issue or discussed with us ahead of time will generally be declined.
146+
147+
<!----------------------------------------------------------------------------->
148+
[Link]: https://polygon.io 'Polygon.io Home Page'
149+
<!---------------------------------[ Buttons ]--------------------------------->
150+
[Button]: https://img.shields.io/badge/Get_One_For_Free-5F5CFF?style=for-the-badge&logoColor=white

assets/polygon_banner_darkmode.png

14.7 KB
Loading

assets/polygon_banner_lightmode.png

15.7 KB
Loading

0 commit comments

Comments
 (0)