Commit Graph

656 Commits

Author SHA1 Message Date
caorui
2ea5d50351 # MSSQL MCP Server
## Overview

MSSQL MCP Server,  provides database interaction and business intelligence capabilities. This server enables running SQL queries, analyzing business data, and automatically generating business insight memos.
Refer to the official website's SQLite for modifications to adapt to MSSQL

## Components

- `read_query`
   - Execute SELECT queries to read data from the database
- `write_query`
   - Execute INSERT, UPDATE, or DELETE queries
- `create_table`
   - Create new tables in the database
- `list_tables`
   - Get a list of all tables in the database
- `describe-table`
   - View schema information for a specific table
- `append_insight`
   - Add new business insights to the memo resource

## Operating environment

- `Python 3.x`
- `Packages`
   - pyodbc>=4.0.39
   - pydantic>=2.0.0
   - mcp>=0.1.0
- `ODBC Driver 17 for SQL Server`

## Usage

### Install packages

```bash
CD /d ~/mssql-mcp
pip install -r requirements.txt
```

### config

```bash
#with server.py same folder create config.json,add:
{
    "database": {
        "driver": "ODBC Driver 17 for SQL Server",
        "server": "server ip",
        "database": "db name",
        "username": "username",
        "password": "password",
        "trusted_connection": false
    },
    "server": {
        "name": "mssql-manager",
        "version": "0.1.0",
        "host": "0.0.0.0",
        "port": 8080
    }
}
```

### Claude Desktop 、 Windsurf

```bash
# add to claude_desktop_config.json. Note:use your path
{
    "mcpServers": {
        "mssql": {
            "command": "py",
            "args": [
                # your path,e.g.:"C:\\mssql-mcp\\src\\server.py"
                "~/server.py"
            ]
        }
    }
}
```

### Cursor

```bash
# Note:use your path
Type:command
Command:py C:\\mssql-mcp\\src\\server.py
```

### MCP Inspector

```bash
# Note:use your path
npx -y @modelcontextprotocol/inspector py C:\\mssql-mcp\\src\\server.py
```

## License

MIT License
2025-03-13 14:16:28 +08:00
shiquda
64a654744a feat(fetch): add support for using proxy for requests 2025-03-13 00:20:48 +08:00
Franco Valerio
8fe9b4768a fix(gitlab): Invalid arguments error when using v4 API for gitlab.com
Make 'merged' property optional and 'diff_refs' nullable in the `GitLabMergeRequestSchema` to align with GitLab V4 API specifications.
2025-03-09 20:24:03 -03:00
CONG To Quang
732c119c75 feat(gitlab): Make owner and fork properties optional 2025-03-04 08:20:07 +07:00
John-Mason P. Shackelford
32f49f4487 feat(github): Add missing pull request operations to MCP server
Add support for all pull request operations documented in README.md that were
previously missing from the MCP server implementation. This includes:

- get_pull_request: Get details of a specific pull request
- list_pull_requests: List and filter repository pull requests
- create_pull_request_review: Create a review on a pull request
- merge_pull_request: Merge a pull request
- get_pull_request_files: Get the list of files changed in a pull request
- get_pull_request_status: Get the combined status of all status checks
- update_pull_request_branch: Update a PR branch with latest base branch changes
- get_pull_request_comments: Get the review comments on a pull request
- get_pull_request_reviews: Get the reviews on a pull request
2025-03-03 17:03:20 -05:00
Matrix Dai
6209bed479 Fix: Handle null description in GitHub label schema 2025-02-28 11:23:01 +08:00
S1M0N38
f35f57c333 fix: add back the __init__.py in mcp_server_tim 2025-02-20 00:59:00 +01:00
S1M0N38
f3e14698c9 feat: configurable timezone for docker in time server
Fixes #639

Add support for configurable timezone in Docker for `time` server.

* Update `src/time/Dockerfile` to include `LOCAL_TIMEZONE` environment variable.
* Set default timezone to "UTC" in `src/time/Dockerfile`.
* Modify `ENTRYPOINT` in `src/time/Dockerfile` to include `--local-timezone` argument.
* Update `src/time/README.md` to include instructions on setting the timezone using `LOCAL_TIMEZONE` environment variable.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/modelcontextprotocol/servers/issues/639?shareId=XXXX-XXXX-XXXX-XXXX).
2025-02-20 00:51:50 +01:00
Ola Hungerford
19b701baa3 Add annotated message example 2025-02-14 20:39:55 -07:00
Steven Gonsalvez
93d7c1af3d Merge branch 'main' into fix/fetch-package 2025-02-13 10:00:45 +00:00
Shotaro Sano
f1474553c1 Merge branch 'main' into update-filesystem-readme 2025-02-12 10:20:01 +09:00
David Soria Parra
9bfccfb2bc Merge pull request #593 from timrogers/timrogers/github-version
Validate in CI that the GitHub server versions in `package.json` and `version.ts` match
2025-02-10 11:50:18 +00:00
Steven Gonsalvez
95e500842d Merge branch 'main' into fix/fetch-package 2025-02-08 11:51:37 +00:00
Shotaro Sano
8171f6458e Merge branch 'main' into update-filesystem-readme 2025-02-07 19:04:54 +09:00
Jerome
ed693a9f82 Merge branch 'main' into main 2025-02-07 14:02:15 +13:00
steven gonsalvez
88c8f5a347 Add error handling and logging for GitHub issue creation
- Improve error handling in GitHub issue creation process
- Add detailed error messages for repository not found scenarios
- Implement global fetch polyfill for node-fetch
- Add debug and error logging for issue creation attempts
2025-02-06 23:26:03 +00:00
Shotaro Sano
964ac6a532 Merge branch 'main' into update-filesystem-readme 2025-02-05 09:54:01 +09:00
Tim Rogers
d5f719c1a2 Validate in CI that the GitHub server versions in package.json and version.ts match 2025-02-04 12:24:08 +00:00
David Soria Parra
c5968be422 Merge pull request #592 from timrogers/timrogers/github-user-agent
Include meaningful `User-Agent` header in requests to the GitHub UI
2025-02-04 12:03:29 +00:00
Shotaro Sano
089b7f9abe Fix misleading edit_file functionality docs in filesystem README 2025-02-03 12:00:41 +09:00
Jerome
8d54d44b2e Merge pull request #552 from anishp/gdrive-path-fix
windows credential file path resolution fixes #301
2025-02-03 13:17:28 +13:00
Jerome
c37ce47196 Merge pull request #551 from shashwat001/add-git-init
Add git init command support to mcp-git-server and update README
2025-02-03 12:42:13 +13:00
Jerome
9ff0b02f17 Merge pull request #540 from freiit/patch-1
memory-mcp: add a volume to docker, otherwise memory gets lost
2025-02-03 12:39:42 +13:00
Tim Rogers
df63442c3c Include meaningful User-Agent header in requests to the GitHub UI
This adds a custom `User-Agent` header to requests from the
GitHub server to the GitHub API, identifying the application,
the version and key information about the environment.

This aligns with the [recommendations][1] in the GitHub Docs.

As part of this change, I have also moved the current version of
the server into a constant, and fix the initialization of `Server`
to use that version, taking from `package.json`.

[1]: https://docs.github.com/en/rest/using-the-rest-api/getting-started-with-the-rest-api?apiVersion=2022-11-28#user-agent
2025-02-02 15:04:59 +00:00
Jerome
0f7730209d Merge pull request #450 from k33g/patch-1
Add arguments to the docker command to avoid the server exit
2025-02-02 09:02:48 +13:00
Jerome
17c5aeaf67 Merge pull request #398 from mathcass/filesystem-typo
fix: update filesystem readme
2025-02-02 08:56:23 +13:00
Jerome
daf9ef4241 Merge pull request #397 from apappascs/feat/add-start-scripts-everything-server
feat: Add start and start:sse scripts to package.json on everything server
2025-02-02 08:54:37 +13:00
Jerome
ab3a1e0143 Merge pull request #392 from s2005/feature/memory-improvements
Feature/memory improvements
2025-02-02 08:53:42 +13:00
Jerome
16dfe5a7c6 Merge pull request #378 from interrobot/windows-default-encoding-fix
Update mcp_server_sqlite to use robust text encoding by default (Windows)
2025-01-30 15:28:52 +13:00
Shashwat Kumar
cda3736800 Merge branch 'main' into add-git-init 2025-01-24 23:08:37 +05:30
Anish Pednekar
a24a33ad27 Merge branch 'main' into gdrive-path-fix 2025-01-23 00:58:58 +05:30
Justin Spahr-Summers
fe014d2136 Fix old toolResult usage in GitHub server 2025-01-22 11:13:29 +00:00
Anish Pednekar
c701fe7dea windows credential file path resolution fix 2025-01-22 15:54:49 +05:30
Shashwat
fc32e87129 Add git init command support to mcp-git-server and update README 2025-01-21 17:44:18 +05:30
Alexandros Pappas
71da7b29f3 Merge branch 'main' into feat/add-start-scripts-everything-server 2025-01-19 16:04:05 +01:00
freiit
0cf470e846 "," after last element of JSON object removed. 2025-01-17 11:09:24 +01:00
freiit
726f50a4d5 add a volume to docker, otherwise memory gets lost 2025-01-17 11:02:20 +01:00
interrobot
3da9821d92 Merge branch 'main' into windows-default-encoding-fix 2025-01-15 23:11:34 -05:00
David Soria Parra
a540ff8090 Merge branch 'main' into patch-1 2025-01-15 20:23:38 +00:00
David Soria Parra
861a51c35c Merge pull request #487 from thejcannon/patch-2
Hint to LLM to add the period to timestamps
2025-01-15 20:20:57 +00:00
David Soria Parra
53f4a23b73 Update server implementation and dependencies 2025-01-15 17:27:12 +00:00
David Soria Parra
49489d4864 Merge pull request #464 from erdnax123/erdnax123-patch-2
fix warnings: - FromAsCasing: 'as' and 'FROM' keywords' casing do not…
2025-01-15 09:34:07 +00:00
David Soria Parra
3bf9d2cbcb Merge pull request #507 from alezkv/alezkv/update-error-handling
Update error handling to use ErrorData consistently
2025-01-15 09:29:53 +00:00
Alexandros Pappas
49088d0b5c Merge branch 'main' into feat/add-start-scripts-everything-server 2025-01-14 16:20:28 +01:00
Justin Spahr-Summers
de256a48b1 fix: Add missing CreatePullRequestSchema and createPullRequest function 2025-01-14 11:19:13 +00:00
Justin Spahr-Summers
a12c6ff23d Merge main: Move to modular structure and add PR functionality 2025-01-14 11:11:41 +00:00
Peter M. Elias
eea524abcf fix: make checkForExistingPullRequest check exact head/base match 2025-01-13 11:53:22 -08:00
Peter M. Elias
339a7b6708 fix: restore original environment variable name for GitHub token 2025-01-13 11:53:22 -08:00
Peter M. Elias
cfd613693c fix: handle URL parameter types correctly in listIssues function 2025-01-13 11:53:22 -08:00
Peter M. Elias
8016e366cd fix: use buildUrl utility in search module 2025-01-13 11:53:22 -08:00