Jay MCP
A demo MCP (Model Context Protocol) server with tools and resources for demonstration purposes.
Features
- Tools: Mathematical operations and server information
- Resources: Personalized greetings and server documentation
- Easy to use: Simple command-line interface
- Extensible: Modular design for easy customization
Installation
Quick Install from PyPI
pip install jay-mcp
MCP Client Installation (Recommended)
For MCP clients, use uvx for automatic latest version loading:
uvx install jay-mcp
GitHub Token Configuration
Configure your GitHub token for higher API rate limits (5000/hour vs 60/hour):
# Method 1: Environment variable
export GITHUB_TOKEN="your_github_token_here"
# Method 2: .env file
echo "GITHUB_TOKEN=your_github_token_here" > .env
Get your token at: GitHub Settings > Developer settings > Personal access tokens
From Source
git clone https://github.com/your-username/jay-mcp.git
cd jay-mcp
pip install -e .
Usage
As an MCP Server
# Start the MCP server
python -m jay_mcp.cli
# Check version
python -m jay_mcp.cli --version
MCP Client Configuration
Add to your MCP client configuration:
{
"mcpServers": {
"jay-mcp": {
"command": "uvx",
"args": ["jay-mcp"],
"env": {
"GITHUB_TOKEN": "your_github_token_here"
}
}
}
}
AI Usage Examples
Once configured, you can use these commands in your AI client:
- "获取 React 的 GitHub 仓库信息"
- "比较这些项目的 star 数:facebook/react, vuejs/vue"
- "查询 microsoft/vscode 的详细信息"
- "分析这些机器学习项目:tensorflow/tensorflow, pytorch/pytorch"
Available Tools
- batch_get_repo_info(repos): 批量获取GitHub仓库信息
- 参数:
repos- 仓库列表,格式:["owner/repo", ...] - 返回: 包含仓库详细信息的字典列表
- 功能: 并行查询多个GitHub仓库的基本信息(stars、forks、语言等)
- 限制: 单次最多查询50个仓库
- 参数:
Available Resources
- greeting://{name}: Get a personalized greeting
- info://server: Get server information and documentation
Development
Setup Development Environment
git clone https://github.com/your-username/jay-mcp.git
cd jay-mcp
pip install -e ".[dev]"
Running Tests
pytest
Code Formatting
black jay_mcp/
isort jay_mcp/
Type Checking
mypy jay_mcp/
MCP Client Configuration
To use jay-mcp with an MCP client, add this configuration to your MCP settings:
{
"mcpServers": {
"jay-mcp": {
"command": "uvx",
"args": ["jay-mcp@latest"],
"description": "Jay MCP Demo Server - Auto-updates to latest version"
}
}
}
The @latest tag ensures you always get the newest version automatically.
For a complete configuration example with tool and resource definitions, see mcp_config.json.
Advanced Configuration
You can also create a custom server instance programmatically:
from jay_mcp.server import create_server
# Create a custom server
server = create_server("My Custom MCP Server")
Contributing
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests if applicable
- Run the test suite
- Submit a pull request
License
This project is licensed under the MIT License - see the LICENSE file for details.
Changelog
0.1.0 (2025-07-14)
- Initial release
- Basic MCP server with tools and resources
- Command-line interface
- PyPI package support
Metadata
Release files for jay-mcp 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| jay_mcp-0.2.1.tar.gz | 14.3 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| jay_mcp-0.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 30.3 kB
Release files / jay_mcp-0.2.1.tar.gz
| Download URL | jay_mcp-0.2.1.tar.gz |
|---|---|
| Size | 14.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
43758a86551cf0d5f1214b724844a50138c6fd1d56f5244b2a70c86e8a7cca4f
|
|
BLAKE2b-256 checksum How to use checksums |
08fcbfe54e026eb04f4d4a993f570b7899b32734fca5bacd1d9c155236057224
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.5
|
Release files / jay_mcp-0.2.1-py3-none-any.whl
| Download URL | jay_mcp-0.2.1-py3-none-any.whl |
|---|---|
| Size | 15.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f5f9f4f6ca5d12987f9e0b9f00e037f6776c1de1d183158a1dc8ba3b9d749b31
|
|
BLAKE2b-256 checksum How to use checksums |
640a349caa96e85385c8a78f974394cd8d579ef6eaae28aef700eadebcccce67
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.5
|
Security for jay-mcp 0.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.